浏览代码

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 <[email protected]>
Ashok Vuyyuru 3 年之前
父节点
当前提交
168b878b5a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

+ 2 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -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: