diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2021-06-29 19:44:55 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-07-01 00:05:18 -0400 |
commit | 9ba85914c36c8fed9bf3e8b69c0782908c1247b7 (patch) | |
tree | cae905696957366d7192739ad3ee23f8eb11d8a8 /drivers/gpu/drm/radeon | |
parent | c339a80d3a5a580a1aaefc2c9eeeb2a1feee4763 (diff) | |
download | linux-stable-9ba85914c36c8fed9bf3e8b69c0782908c1247b7.tar.gz linux-stable-9ba85914c36c8fed9bf3e8b69c0782908c1247b7.tar.bz2 linux-stable-9ba85914c36c8fed9bf3e8b69c0782908c1247b7.zip |
drm/radeon: Add the missed drm_gem_object_put() in radeon_user_framebuffer_create()
radeon_user_framebuffer_create() misses to call drm_gem_object_put() in
an error path. Add the missed function call to fix it.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 406681317419..573154268d43 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -1325,6 +1325,7 @@ radeon_user_framebuffer_create(struct drm_device *dev, /* Handle is imported dma-buf, so cannot be migrated to VRAM for scanout */ if (obj->import_attach) { DRM_DEBUG_KMS("Cannot create framebuffer from imported dma_buf\n"); + drm_gem_object_put(obj); return ERR_PTR(-EINVAL); } |