]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: sn65dsi83: Fix an error handling path in sn65dsi83_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 29 Dec 2021 08:58:44 +0000 (09:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:16 +0000 (18:36 +0200)
commit8ecea926e44bb23d93feab15d39f2ef3d92b2a07
tree6d31db905483c1973768aaae4cb45082176e6fb4
parent0ac4b5cc8eb6b39d3f0735eec860c965d8e65f43
drm/bridge: sn65dsi83: Fix an error handling path in sn65dsi83_probe()

[ Upstream commit 595f3643da1b8ca2393adc2872bbc51755eb83fc ]

sn65dsi83_parse_dt() takes a reference on 'ctx->host_node' that must be
released in the error handling path of this function and of the probe.
This is only done in the remove function up to now.

Fixes: 454c13700cba ("drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/4bc21aed4b60d3d5ac4b28d8b07a6fdd8da6a536.1640768126.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/ti-sn65dsi83.c