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,8 +2003,10 @@ static void sde_rotator_cancel_request(struct sde_rot_mgr *mgr,
|
||||||
sde_rot_mgr_unlock(mgr);
|
sde_rot_mgr_unlock(mgr);
|
||||||
for (i = req->count - 1; i >= 0; i--) {
|
for (i = req->count - 1; i >= 0; i--) {
|
||||||
entry = req->entries + i;
|
entry = req->entries + i;
|
||||||
flush_kthread_worker(&entry->commitq->rot_kw);
|
if (entry->commitq)
|
||||||
flush_kthread_worker(&entry->doneq->rot_kw);
|
flush_kthread_worker(&entry->commitq->rot_kw);
|
||||||
|
if (entry->doneq)
|
||||||
|
flush_kthread_worker(&entry->doneq->rot_kw);
|
||||||
}
|
}
|
||||||
sde_rot_mgr_lock(mgr);
|
sde_rot_mgr_lock(mgr);
|
||||||
SDEROT_DBG("cancel work done\n");
|
SDEROT_DBG("cancel work done\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue