diff options
| author | Rob Clark <[email protected]> | 2023-01-23 07:48:31 -0800 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2023-02-01 11:18:15 +0100 |
| commit | 3ad8173b4d8788c983c2e850cc2a7a68aafbdb45 (patch) | |
| tree | cb4b7a63267143509718979158cd0cacf2a78493 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | 76b1d904ad2f4059c12310872c23bc1bcd6f35c8 (diff) | |
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: Rob Clark <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Signed-off-by: Steven Price <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit d023d6f741c85bb00d2ca43d338327fbc150c113)
Signed-off-by: Thomas Zimmermann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions