diff options
author | Gustavo A. R. Silva <[email protected]> | 2018-09-04 14:07:49 -0500 |
---|---|---|
committer | Gerd Hoffmann <[email protected]> | 2018-09-05 08:28:28 +0200 |
commit | 683a0e630cb463d18e9c158496270dc918cf5437 (patch) | |
tree | 375baeae4e1290f05cf9d1f0de43c2982574e2cb /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a3b815f09bb846255c458c181b8a5b1cc66891b4 (diff) |
dma-buf/udmabuf: Fix NULL pointer dereference in udmabuf_create
There is a potential execution path in which pointer memfd is NULL when
passed as argument to fput(), hence there is a NULL pointer dereference
in fput().
Fix this by null checking *memfd* before calling fput().
Addresses-Coverity-ID: 1473174 ("Explicit null dereferenced")
Fixes: fbb0de795078 ("Add udmabuf misc device")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions