Skip to content
Commit 5f99504d authored by Kamal Agrawal's avatar Kamal Agrawal
Browse files

msm: kgsl: Check user generated timestamp before queuing drawobjs


In ioctls like kgsl_ioctl_submit_commands(), if both syncobj
type and cmd/marker/sparseobj type are submitted, the syncobj
is queued first followed by the other obj type. After syncobj
is successfully queued, in case of failure in get_timestamp
while queuing the other obj, both the command objs are
destroyed. As sync obj is already queued, accessing this
later would cause a crash.

Compare the user generated timestamp with the drawctxt
timestamp and return early in case of error. This avoids
unnecessary queuing of drawobjs.

Change-Id: Iedebd480bc18cd74d2f69d24a9dc1032fab01cdb
Signed-off-by: default avatarKamal Agrawal <quic_kamaagra@quicinc.com>
parent cdc7d47b
Please register or to comment