Skip to content

Commit

Permalink
drm/qxl: fix prime vmap
Browse files Browse the repository at this point in the history
Use the correct vmap variant.  We don't have a reservation here,
so we can't use the _locked version.

Signed-off-by: Gerd Hoffmann <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
kraxel committed Feb 19, 2021
1 parent dce3922 commit 61cc6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/qxl/qxl_prime.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int qxl_gem_prime_vmap(struct drm_gem_object *obj, struct dma_buf_map *map)
struct qxl_bo *bo = gem_to_qxl_bo(obj);
int ret;

ret = qxl_bo_vmap_locked(bo, map);
ret = qxl_bo_vmap(bo, map);
if (ret < 0)
return ret;

Expand All @@ -71,7 +71,7 @@ void qxl_gem_prime_vunmap(struct drm_gem_object *obj,
{
struct qxl_bo *bo = gem_to_qxl_bo(obj);

qxl_bo_vunmap_locked(bo);
qxl_bo_vunmap(bo);
}

int qxl_gem_prime_mmap(struct drm_gem_object *obj,
Expand Down

0 comments on commit 61cc6d9

Please sign in to comment.