]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/prime: Use dma_buf from GEM object instance
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 26 Feb 2025 17:03:13 +0000 (18:03 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 6 Mar 2025 07:59:36 +0000 (08:59 +0100)
commitf83a9b8c7fd0557b0c50784bfdc1bbe9140c9bf8
treebe72a7f873177aa90d4bd7c5a08fcd431a818158
parent0695d8fc113a03facfee55930f5906ab4461fd4d
drm/prime: Use dma_buf from GEM object instance

Avoid dereferencing struct drm_gem_object.import_attach for the
imported dma-buf. The dma_buf field in the GEM object instance refers
to the same buffer. Prepares to make import_attach optional.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Anusha Srivatsa <asrivats@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250226172457.217725-11-tzimmermann@suse.de
drivers/gpu/drm/drm_prime.c