Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6eecfcbc authored by Hoegeun Kwon's avatar Hoegeun Kwon Committed by Greg Kroah-Hartman
Browse files

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: default avatarHoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20201027041442.30352-2-hoegeun.kwon@samsung.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1aa82721
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -312,6 +312,7 @@ static int vc4_drm_bind(struct device *dev)
	component_unbind_all(dev, drm);
gem_destroy:
	vc4_gem_destroy(drm);
	drm_mode_config_cleanup(drm);
	vc4_bo_cache_destroy(drm);
dev_put:
	drm_dev_put(drm);