Skip to content
Commit 3ad8173b authored by Rob Clark's avatar Rob Clark Committed by Thomas Zimmermann
Browse files

drm/shmem: Cleanup drm_gem_shmem_create_with_handle()



Once we create the handle, the handle owns the reference.  Currently
nothing was doing anything with the shmem ptr after the handle was
created, but let's change drm_gem_shmem_create_with_handle() to not
return the pointer, so-as to not encourage problematic use of this
function in the future.  As a bonus, it makes the code a bit cleaner.

Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Reviewed-by: default avatarSteven Price <steven.price@arm.com>
Signed-off-by: default avatarSteven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230123154831.3191821-1-robdclark@gmail.com


(cherry picked from commit d023d6f7)
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
parent 76b1d904
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment