aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2023-02-24 18:21:54 +0100
committerLucas Stach <[email protected]>2023-03-30 17:47:05 +0200
commit963b2e8c428f79489ceeb058e8314554ec9cbe6f (patch)
treea0672a164b50b821bf0776ddedb69125aac69dec /rust/helpers.c
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
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: [email protected] Signed-off-by: Lucas Stach <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions