Skip to content

Commit 36fa1cb

Browse files
committed
Merge tag 'drm-misc-next-fixes-2022-08-10' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
Short summary of fixes pull: * gem: Annotate WW context in error paths * shmem-helper: Add missing vunmap in error paths Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/YvOLPpufsvOJHiNY@linux-uq9g
2 parents 5493ee1 + 2939dea commit 36fa1cb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/gpu/drm/drm_gem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ drm_gem_lock_reservations(struct drm_gem_object **objs, int count,
12261226
ret = dma_resv_lock_slow_interruptible(obj->resv,
12271227
acquire_ctx);
12281228
if (ret) {
1229-
ww_acquire_done(acquire_ctx);
1229+
ww_acquire_fini(acquire_ctx);
12301230
return ret;
12311231
}
12321232
}
@@ -1251,7 +1251,7 @@ drm_gem_lock_reservations(struct drm_gem_object **objs, int count,
12511251
goto retry;
12521252
}
12531253

1254-
ww_acquire_done(acquire_ctx);
1254+
ww_acquire_fini(acquire_ctx);
12551255
return ret;
12561256
}
12571257
}

drivers/gpu/drm/drm_gem_shmem_helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ static int drm_gem_shmem_vmap_locked(struct drm_gem_shmem_object *shmem,
302302
ret = dma_buf_vmap(obj->import_attach->dmabuf, map);
303303
if (!ret) {
304304
if (WARN_ON(map->is_iomem)) {
305+
dma_buf_vunmap(obj->import_attach->dmabuf, map);
305306
ret = -EIO;
306307
goto err_put_pages;
307308
}

0 commit comments

Comments
 (0)