diff options
author | Hoegeun Kwon <hoegeun.kwon@samsung.com> | 2020-10-27 13:14:42 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-10 12:36:00 +0100 |
commit | 6eecfcbcde431904e5837d285e9e99b5a5eac02c (patch) | |
tree | 2d6d32cee10f2781cf4f0c4de5f5a3c677bc127a | |
parent | 1aa82721dd74c9f08337ea0a22689eb2a94634ae (diff) | |
download | linux-stable-6eecfcbcde431904e5837d285e9e99b5a5eac02c.tar.gz linux-stable-6eecfcbcde431904e5837d285e9e99b5a5eac02c.tar.bz2 linux-stable-6eecfcbcde431904e5837d285e9e99b5a5eac02c.zip |
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>
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 04270a14fcaa..868dd1ef3b69 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -312,6 +312,7 @@ unbind_all: 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); |