[PATCH] drm/etnaviv: fix reference leak when mmaping imported buffer

Dmitry Osipenko dmitry.osipenko at collabora.com
Sat Mar 4 19:45:08 UTC 2023


On 2/28/23 19:55, Lucas Stach wrote:
> drm_gem_prime_mmap() takes a reference on the GEM object, but before that
> drm_gem_mmap_obj() already takes a reference, which will be leaked as only
> one reference is dropped when the mapping is closed. Drop the extra
> reference when dma_buf_mmap() succeeds.
> 
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>

Fixes tag missing

-- 
Best regards,
Dmitry



More information about the dri-devel mailing list