diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2023-02-24 18:21:54 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2023-03-30 17:47:05 +0200 |
commit | 963b2e8c428f79489ceeb058e8314554ec9cbe6f (patch) | |
tree | a0672a164b50b821bf0776ddedb69125aac69dec /drivers/gpu/drm/etnaviv/etnaviv_drv.c | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) | |
download | lwn-963b2e8c428f79489ceeb058e8314554ec9cbe6f.tar.gz lwn-963b2e8c428f79489ceeb058e8314554ec9cbe6f.zip |
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.
Cc: stable@vger.kernel.org
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_drv.c')
0 files changed, 0 insertions, 0 deletions