Skip to content

Commit afcc87a

Browse files
thomashvmwairlied
authored andcommitted
drm/vmwgfx: Fix a case where the code would BUG when trying to pin GMR memory
Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Dmitry Torokhov <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Dave Airlie <[email protected]>
1 parent 95e8f6a commit afcc87a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin)
306306

307307
BUG_ON(!atomic_read(&bo->reserved));
308308
BUG_ON(old_mem_type != TTM_PL_VRAM &&
309-
old_mem_type != VMW_PL_FLAG_GMR);
309+
old_mem_type != VMW_PL_GMR);
310310

311311
pl_flags = TTM_PL_FLAG_VRAM | VMW_PL_FLAG_GMR | TTM_PL_FLAG_CACHED;
312312
if (pin)

0 commit comments

Comments
 (0)