Skip to content

Commit 7f67c36

Browse files
tdzthierryreding
authored andcommitted
drm/tegra: Test for imported buffers with drm_gem_is_imported()
Instead of testing import_attach for imported GEM buffers, invoke drm_gem_is_imported() to do the test. 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-2-tzimmermann@suse.de
1 parent cedb945 commit 7f67c36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/gpu/drm/tegra

drivers/gpu/drm/tegra/gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ void tegra_bo_free_object(struct drm_gem_object *gem)
523523
if (tegra->domain) {
524524
tegra_bo_iommu_unmap(tegra, bo);
525525

526-
if (gem->import_attach) {
526+
if (drm_gem_is_imported(gem)) {
527527
dma_buf_unmap_attachment_unlocked(gem->import_attach, bo->sgt,
528528
DMA_TO_DEVICE);
529529
dma_buf_detach(gem->import_attach->dmabuf, gem->import_attach);

0 commit comments

Comments
 (0)