]> git.baikalelectronics.ru Git - kernel.git/commit
drm/shmem-helper: Add missing vunmap on error
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Thu, 30 Jun 2022 20:00:57 +0000 (23:00 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Aug 2022 16:15:42 +0000 (18:15 +0200)
commit86513e6fd9d0d9c65b89dbba9ba93ee9233d9d2e
tree94c9593cbd9b86cf80bd258ad628ff7a01d61cd8
parentc9398ffd4450a32a8ed9b16c2874d2fb984ecfe3
drm/shmem-helper: Add missing vunmap on error

The vmapping of dma-buf may succeed, but DRM SHMEM rejects the IOMEM
mapping, and thus, drm_gem_shmem_vmap_locked() should unvmap the IOMEM
before erroring out.

Cc: stable@vger.kernel.org
Fixes: 67c70da25fa3 ("drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends")
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220630200058.1883506-2-dmitry.osipenko@collabora.com
drivers/gpu/drm/drm_gem_shmem_helper.c