Commit f947c295 authored by Pan Bian's avatar Pan Bian Committed by Zheng Zengkai
Browse files

drm/imx: fix memory leak when fails to init



stable inclusion
from stable-5.10.28
commit 77a8e6f792d5cfca3c6a30845b069161647d1d55
bugzilla: 51779

--------------------------------

commit 69c3ed72 upstream.

Put DRM device on initialization failure path rather than directly
return error code.

Fixes: a67d5088 ("drm/imx: drop explicit drm_mode_config_cleanup")
Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent d809309a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment