> +void drm_gem_vram_bo_driver_move_notify(struct ttm_buffer_object *bo,
> +                                     bool evict,
> +                                     struct ttm_mem_reg *new_mem)
> +{
[ ... ]
> +     if (!kmap->virtual)
> +             return;
> +     ttm_bo_kunmap(kmap);
> +     kmap->virtual = NULL;
> +}

I think ttm_buffer_object_destroy() needs "if (kmap->virtual)
ttm_bo_kunmap()" too, due to the lazy unmap you can land there
with an active mapping.

cheers,
  Gerd

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to