Commit b848cd41 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Dmitry Baryshkov
Browse files

drm/bridge: lt9611uxc: Fix an error handling path in lt9611uxc_probe()



If lt9611uxc_audio_init() fails, some resources still need to be released
before returning the error code.

Use the existing error handling path.

Fixes: 0cbbd5b1 ("drm: bridge: add support for lontium LT9611UXC bridge")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/f167608e392c6b4d7d7f6e45e3c21878feb60cbd.1744958833.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
parent dcbd5dcc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -881,7 +881,11 @@ static int lt9611uxc_probe(struct i2c_client *client)
		}
	}

	return lt9611uxc_audio_init(dev, lt9611uxc);
	ret = lt9611uxc_audio_init(dev, lt9611uxc);
	if (ret)
		goto err_remove_bridge;

	return 0;

err_remove_bridge:
	free_irq(client->irq, lt9611uxc);