Re: [PATCH v2] drm/shmem: Cleanup drm_gem_shmem_create_with_handle()

2023-01-23 Thread Steven Price
On 19/01/2023 22:44, Rob Clark wrote: > From: Rob Clark > > 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

[PATCH v2] drm/shmem: Cleanup drm_gem_shmem_create_with_handle()

2023-01-19 Thread Rob Clark
From: Rob Clark 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