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)
committerRobert Foss <robert.foss@linaro.org>
Mon, 3 Jan 2022 10:21:15 +0000 (11:21 +0100)
commit6edf615618b8259f16eeb1df98f0ba0d2312c22e
treecfac4ff501ecab8c61c85e8a80ec4b625fa1eec9
parent6844a28885183a5a2af92a8d315a59f7a0e668b9
drm/bridge: sn65dsi83: Fix an error handling path in sn65dsi83_probe()

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
drivers/gpu/drm/bridge/ti-sn65dsi83.c