Skip to content
Snippets Groups Projects
Commit 0c99bf31 authored by Lucas Stach's avatar Lucas Stach Committed by Sebastian Krzyszkowiak
Browse files

drm/etnaviv: fix reference leak when mmaping imported buffer


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: default avatarLucas Stach <l.stach@pengutronix.de>
parent cbc24a59
Loading
Pipeline #82996 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment