ソースを参照

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: