]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/tegra: Use dma_buf from GEM object instance
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 Jun 2025 11:27:01 +0000 (13:27 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 7 Jul 2025 15:02:28 +0000 (17:02 +0200)
commit482c7e296edc0f594e8869a789a40be53c49bd6a
treee20a08ec435b6d2e693939b0eef16786ce3e41be
parent7f67c360bc73bed0a980652e921ec14a15fcf1bf
drm/tegra: 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 an implementation
detail of PRIME.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250619113100.70292-3-tzimmermann@suse.de
drivers/gpu/drm/tegra/gem.c