Commit d0d9ca29 authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by sanglipeng
Browse files

drm/meson: Fix error handling when afbcd.ops->init fails

stable inclusion
from stable-v5.10.177
commit 794a6cea22688db942ee10c258c5f353e7e1649d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=794a6cea22688db942ee10c258c5f353e7e1649d



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

[ Upstream commit fa747d75 ]

When afbcd.ops->init fails we need to free the struct drm_device. Also
all errors which come after afbcd.ops->init was successful need to exit
the AFBCD, just like meson_drv_unbind() does.

Fixes: d1b5e41e ("drm/meson: Add AFBCD module driver")
Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211230235515.1627522-3-martin.blumenstingl@googlemail.com


Stable-dep-of: ba98413b ("drm/meson: fix missing component unbind on bind errors")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent dbd36968
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment