]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure
authorMarek Vasut <marex@denx.de>
Fri, 14 Oct 2022 23:11:06 +0000 (01:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:01 +0000 (11:41 +0100)
commit9cdcfb9913e3a02e3a32c88c5b52f0b1906f730b
treeeb9016625ba4b60f7e7d5b3962333a590a7872e2
parent9b69bb675bd979f1ee84bd0e8c988b05bd585cbd
drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure

[ Upstream commit c62102165dd79284d42383d2f7ed17301bd8e629 ]

In case mipi_dsi_attach() fails, call drm_panel_remove() to
avoid memory leak.

Fixes: fa744ad42ad3 ("drm/panel: Add Sitronix ST7701 panel driver")
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014231106.468063-1-marex@denx.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panel/panel-sitronix-st7701.c