Re: [PATCH v7 1/2] drm/shmem-helper: Add missing vunmap on error

2022-08-09 Thread Daniel Vetter
On Thu, Jun 30, 2022 at 11:00:57PM +0300, Dmitry Osipenko wrote: > 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: sta...@vger.kernel.org > Fixes: 49a3f51dfeee ("drm/gem: Us

[PATCH v7 1/2] drm/shmem-helper: Add missing vunmap on error

2022-06-30 Thread Dmitry Osipenko
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: sta...@vger.kernel.org Fixes: 49a3f51dfeee ("drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends") Signed-off-b