Skip to content

Commit 4972532

Browse files
author
Thomas Zimmermann
committed
drm/fb-dma-helper: 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: Anusha Srivatsa <asrivats@redhat.com> Reviewed-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250226172457.217725-9-tzimmermann@suse.de
1 parent cce16fc commit 4972532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_fb_dma_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int drm_fb_dma_get_scanout_buffer(struct drm_plane *plane,
178178
dma_obj = drm_fb_dma_get_gem_obj(fb, 0);
179179

180180
/* Buffer should be accessible from the CPU */
181-
if (dma_obj->base.import_attach)
181+
if (drm_gem_is_imported(&dma_obj->base))
182182
return -ENODEV;
183183

184184
/* Buffer should be already mapped to CPU */

0 commit comments

Comments
 (0)