mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
msm: ipa3: Fix to destory workqueue only if created
Freepage workqueue created only for few pipes, while handling error scenarios freeing it for all pipes. So adding check to free work queue only if created. Change-Id: I8bf097c02f6acd0a4a22b3d4bc5b66f46884fc1e Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
This commit is contained in:
parent
d32afa862e
commit
ddeae0e52f
1 changed files with 2 additions and 1 deletions
|
|
@ -1504,7 +1504,8 @@ fail_napi:
|
|||
fail_gen2:
|
||||
ipa_pm_deregister(ep->sys->pm_hdl);
|
||||
fail_pm:
|
||||
destroy_workqueue(ep->sys->freepage_wq);
|
||||
if (ep->sys->freepage_wq)
|
||||
destroy_workqueue(ep->sys->freepage_wq);
|
||||
fail_wq3:
|
||||
destroy_workqueue(ep->sys->repl_wq);
|
||||
fail_wq2:
|
||||
|
|
|
|||
Loading…
Reference in a new issue