Skip to contentSkip to conversation

drm/bridge: anx7625: add missing destroy_workqueue() in anx7625_i2c_probe()

PATCH Applied Yang Yingliang 3 participants 3 messages Mar 26, 2022 – Mar 31, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: anx7625: add missing destroy_workqueue() in anx7625_i2c_probe()

Add the missing destroy_workqueue() before return from anx7625_i2c_probe() in the error handling case.

Fixes adca62ec370c ("drm/bridge: anx7625: Support reading edid through aux channel")
---
 drivers/gpu/drm/bridge/analogix/anx7625.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/analogix/anx7625.c +2 -2
index 31ecf5626f1d..1895e3448c02 100644
@@ -2654,7 +2654,7 @@ static int anx7625_i2c_probe(struct i2c_client *client,
 	if (ret) {
 		if (ret != -EPROBE_DEFER)
 			DRM_DEV_ERROR(dev, "fail to parse DT : %d\n", ret);
-		return ret;
+		goto free_wq;
 	}
 
 	if (anx7625_register_i2c_dummy_clients(platform, client) != 0) {
@@ -2669,7 +2669,7 @@ static int anx7625_i2c_probe(struct i2c_client *client,
 	pm_suspend_ignore_children(dev, true);
 	ret = devm_add_action_or_reset(dev, anx7625_runtime_disable, dev);
 	if (ret)
-		return ret;
+		goto free_wq;
 
 	if (!platform->pdata.low_power_mode) {
 		anx7625_disable_pd_protocol(platform);
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Yang Yingliang

Add the missing destroy_workqueue() before return from anx7625_i2c_probe() in the error handling case.

Fixes adca62ec370c ("drm/bridge: anx7625: Support reading edid through aux channel")

---

Quoted 28 lines
 drivers/gpu/drm/bridge/analogix/anx7625.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/analogix/anx7625.c +2 -3
index 31ecf5626f1d..1895e3448c02 100644
@@ -2654,7 +2654,7 @@ static int anx7625_i2c_probe(struct i2c_client *client,
        if (ret) {
                if (ret != -EPROBE_DEFER)
                        DRM_DEV_ERROR(dev, "fail to parse DT : %d\n", ret);
-               return ret;
+               goto free_wq;
        }
 
        if (anx7625_register_i2c_dummy_clients(platform, client) != 0) {
@@ -2669,7 +2669,7 @@ static int anx7625_i2c_probe(struct i2c_client *client,
        pm_suspend_ignore_children(dev, true);
        ret = devm_add_action_or_reset(dev, anx7625_runtime_disable, dev);
        if (ret)
-               return ret;
+               goto free_wq;
 
        if (!platform->pdata.low_power_mode) {
                anx7625_disable_pd_protocol(platform);
--

2.25.1