diff options
author | Hoegeun Kwon <hoegeun.kwon@samsung.com> | 2020-10-27 13:14:42 +0900 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2020-10-27 15:54:18 +0100 |
commit | 9ce0af3e9573fb84c4c807183d13ea2a68271e4b (patch) | |
tree | a30f68c58b4cb59685796c08465ff98a474f4072 | |
parent | b52817e9de06a3af4ebefd6d244c9c750903d79c (diff) | |
download | linux-9ce0af3e9573fb84c4c807183d13ea2a68271e4b.tar.gz linux-9ce0af3e9573fb84c4c807183d13ea2a68271e4b.tar.bz2 linux-9ce0af3e9573fb84c4c807183d13ea2a68271e4b.zip |
drm/vc4: drv: Add error handding for bind
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
-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 f1a5fd5dab6f..a17aa1db11b6 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -314,6 +314,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); |