Skip to content
Commit 683a0e63 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Gerd Hoffmann
Browse files

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: fbb0de79 ("Add udmabuf misc device")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180904190749.GA9308@embeddedor.com


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent a3b815f0
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