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:
Ashok Vuyyuru
2022-03-24 13:34:16 +05:30
committed by Gerrit - the friendly Code Review server
parent 49899d14a2
commit 168b878b5a

View File

@@ -1724,7 +1724,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: