Merge "msm: sde: Avoid NULL pointer dereference in cancel request"
This commit is contained in:
commit
02411b451a
1 changed files with 4 additions and 2 deletions
|
@ -2003,7 +2003,9 @@ static void sde_rotator_cancel_request(struct sde_rot_mgr *mgr,
|
|||
sde_rot_mgr_unlock(mgr);
|
||||
for (i = req->count - 1; i >= 0; i--) {
|
||||
entry = req->entries + i;
|
||||
if (entry->commitq)
|
||||
flush_kthread_worker(&entry->commitq->rot_kw);
|
||||
if (entry->doneq)
|
||||
flush_kthread_worker(&entry->doneq->rot_kw);
|
||||
}
|
||||
sde_rot_mgr_lock(mgr);
|
||||
|
|
Loading…
Add table
Reference in a new issue