Skip to content
Snippets Groups Projects
Commit 0345bae1 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

drm/qxl: add lock asserts to qxl_bo_vmap_locked + qxl_bo_vunmap_locked

parent b4b27f08
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,8 @@ int qxl_bo_vmap_locked(struct qxl_bo *bo, struct dma_buf_map *map)
{
int r;
dma_resv_assert_held(bo->tbo.base.resv);
if (bo->kptr) {
bo->map_count++;
goto out;
......@@ -236,6 +238,8 @@ void *qxl_bo_kmap_atomic_page(struct qxl_device *qdev,
void qxl_bo_vunmap_locked(struct qxl_bo *bo)
{
dma_resv_assert_held(bo->tbo.base.resv);
if (bo->kptr == NULL)
return;
bo->map_count--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment