Procházet zdrojové kódy

Merge "disp: msm: update cleanup during bind failure in msm_drm_component_init"

qctecmdr před 3 roky
rodič
revize
a02746e4d2
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      msm/msm_drv.c

+ 5 - 1
msm/msm_drv.c

@@ -829,8 +829,12 @@ static int msm_drm_component_init(struct device *dev)
 
 	/* Bind all our sub-components: */
 	ret = msm_component_bind_all(dev, ddev);
-	if (ret)
+	if (ret == -EPROBE_DEFER) {
+		destroy_workqueue(priv->wq);
+		return ret;
+	} else if (ret) {
 		goto bind_fail;
+	}
 
 	ret = msm_init_vram(ddev);
 	if (ret)