diff options
| author | Archana Sriram <apsrir@codeaurora.org> | 2019-10-15 10:36:26 +0530 |
|---|---|---|
| committer | Archana Sriram <apsrir@codeaurora.org> | 2019-10-23 11:35:14 +0530 |
| commit | 2af9b2a1e8327d2ffff9f344d25d3cb0124e4fc3 (patch) | |
| tree | 18fc4669fd2f17fddcadd076e11ec400693625be /drivers/acpi/cppc_acpi.c | |
| parent | dd4645c977feb6cef4d7f598abd8864cc7b7e878 (diff) | |
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: I336c95c42ab1075d7653cba02772f92c918c884c
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
Signed-off-by: Harshitha Sai Neelati <hsaine@codeaurora.org>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
