Commit 9987151a authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Robert Foss

drm/bridge: lt9611: Fix an error handling path in lt9611_probe()

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

Add the missing goto the error handling path.

Fixes: 23278bf5 ("drm/bridge: Introduce LT9611 DSI to HDMI bridge")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/9c20eb74d42f6d4128e58e3e46aa320482472b77.1643468761.git.christophe.jaillet@wanadoo.frReviewed-by: default avatarRobert Foss <robert.foss@linaro.org>
parent 46f47807
...@@ -1164,7 +1164,11 @@ static int lt9611_probe(struct i2c_client *client, ...@@ -1164,7 +1164,11 @@ static int lt9611_probe(struct i2c_client *client,
lt9611_enable_hpd_interrupts(lt9611); lt9611_enable_hpd_interrupts(lt9611);
return lt9611_audio_init(dev, lt9611); ret = lt9611_audio_init(dev, lt9611);
if (ret)
goto err_remove_bridge;
return 0;
err_remove_bridge: err_remove_bridge:
drm_bridge_remove(&lt9611->bridge); drm_bridge_remove(&lt9611->bridge);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment