]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Fri, 8 Apr 2022 11:57:54 +0000 (13:57 +0200)
commited5b65fd3a72c1c813f516f3d75ee19dcaf57bb5
tree30cda020fc4ffc6f75c5c259f3a4864bfcde517c
parentb8a37388540d67dba6e304eb9f3b6b9b88a450bc
drm/bridge: sn65dsi83: Fix an error handling path in sn65dsi83_probe()

[ Upstream commit 6edf615618b8259f16eeb1df98f0ba0d2312c22e ]

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: ceb515ba29ba ("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