Skip to content
Commit 2878bba5 authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Paul Gortmaker
Browse files

dma-buf: Fix memory leak in sync_file_merge()



commit 6645d42d upstream.

In the implementation of sync_file_merge() the allocated sync_file is
leaked if number of fences overflows. Release sync_file by goto err.

Fixes: a02b9dc9 ("dma-buf/sync_file: refactor fence storage in struct sync_file")
Signed-off-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191122220957.30427-1-navid.emamdoost@gmail.com


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent b10d7f86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment