]> git.ipfire.org Git - people/arne_f/kernel.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 09:29:06 +0000 (10:29 +0100)
commit25b349b4d8229209266f5dd87744bafad2306bbc
treed00f694311e7e4ea14e78169d446103e3cdab909
parentb7b611701f71863959b439d0db0245faf1f321bc
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