]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/bridge: anx7625: add missing destroy_workqueue() in anx7625_i2c_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 26 Mar 2022 07:33:26 +0000 (15:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:29:54 +0000 (10:29 +0200)
[ Upstream commit 6f5efd118efafa22139e8670a4e4b506ba757dfd ]

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")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220326073326.3389347-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/analogix/anx7625.c

index 8e1851a5763877374c2aef63b46721931fc4fd70..a23e13c29a1dbdf2dfd3c44534be5662d808061b 100644 (file)
@@ -2657,7 +2657,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) {
@@ -2672,7 +2672,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);