]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vc4: drv: Add error handding for bind
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 27 Oct 2020 04:14:42 +0000 (13:14 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:36:00 +0000 (12:36 +0100)
commit6eecfcbcde431904e5837d285e9e99b5a5eac02c
tree2d6d32cee10f2781cf4f0c4de5f5a3c677bc127a
parent1aa82721dd74c9f08337ea0a22689eb2a94634ae
drm/vc4: drv: Add error handding for bind

[ Upstream commit 9ce0af3e9573fb84c4c807183d13ea2a68271e4b ]

There is a problem that if vc4_drm bind fails, a memory leak occurs on
the drm_property_create side. Add error handding for drm_mode_config.

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20201027041442.30352-2-hoegeun.kwon@samsung.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vc4/vc4_drv.c