drm/vmwgfx: Fix a case where the code would BUG when trying to pin GMR memory
Subsystems (3)
PATCH 1/1 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]>
--- drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c +1 -1
@@ -306,7 +306,7 @@ void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin)BUG_ON (!atomic_read (&bo->reserved));BUG_ON (old_mem_type !=TTM_PL_VRAM && - old_mem_type !=VMW_PL_FLAG_GMR ); + old_mem_type !=VMW_PL_GMR ); pl_flags =TTM_PL_FLAG_VRAM |VMW_PL_FLAG_GMR |TTM_PL_FLAG_CACHED ;if (pin)
Signature · 1 line
1.7.4.4