diff options
| author | Thomas Zimmermann <[email protected]> | 2025-04-16 06:57:45 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2025-04-17 07:52:48 +0000 |
| commit | 8260731ccad0451207b45844bb66eb161a209218 (patch) | |
| tree | 5920f3a73c430087edad6111c7bbb13a8f78bd6d /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | dma-buf/sw_sync: Decrement refcount on error in sw_sync_ioctl_get_deadline() (diff) | |
| download | kernel-8260731ccad0451207b45844bb66eb161a209218.tar.gz kernel-8260731ccad0451207b45844bb66eb161a209218.zip | |
drm/gem: Internally test import_attach for imported objects
Test struct drm_gem_object.import_attach to detect imported objects.
During object clenanup, the dma_buf field might be NULL. Testing it in
an object's free callback then incorrectly does a cleanup as for native
objects. Happens for calls to drm_mode_destroy_dumb_ioctl() that
clears the dma_buf field in drm_gem_object_exported_dma_buf_free().
v3:
- only test for import_attach (Boris)
v2:
- use import_attach.dmabuf instead of dma_buf (Christian)
Signed-off-by: Thomas Zimmermann <[email protected]>
Fixes: b57aa47d39e9 ("drm/gem: Test for imported GEM buffers with helper")
Reported-by: Andy Yan <[email protected]>
Closes: https://lore.kernel.org/dri-devel/[email protected]/
Tested-by: Andy Yan <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: Anusha Srivatsa <[email protected]>
Cc: Christian König <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: Sumit Semwal <[email protected]>
Cc: "Christian König" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Boris Brezillon <[email protected]>
Reviewed-by: Simona Vetter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
