diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-01-29 18:06:24 +0300 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2022-01-31 19:25:51 +0300 |
commit | 9987151a90567785beebcbd5c8ac58d05f254137 (patch) | |
tree | 4ea55c9b17a32fb6035e481c78f62d818175b3d4 | |
parent | 46f47807738441e354873546dde0b000106c068a (diff) | |
download | linux-9987151a90567785beebcbd5c8ac58d05f254137.tar.xz |
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: 23278bf54afe ("drm/bridge: Introduce LT9611 DSI to HDMI bridge")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/9c20eb74d42f6d4128e58e3e46aa320482472b77.1643468761.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Robert Foss <robert.foss@linaro.org>
-rw-r--r-- | drivers/gpu/drm/bridge/lontium-lt9611.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c index feb128a4557d..63df2e8a8abc 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c @@ -1164,7 +1164,11 @@ static int lt9611_probe(struct i2c_client *client, 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: drm_bridge_remove(<9611->bridge); |