msm: kgsl: Allow 0 as a valid ion file descriptor
Treat 0 as a valid fd instead of treating it as an error. CRs-Fixed: 1030098 Change-Id: I4a1b14fcbca617bc2a43b30af7256edc3920f04c Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
This commit is contained in:
parent
a0c892b3a6
commit
f2af84b10c
1 changed files with 1 additions and 1 deletions
|
@ -2249,7 +2249,7 @@ static long _gpuobj_map_dma_buf(struct kgsl_device *device,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (buf.fd == 0)
|
||||
if (buf.fd < 0)
|
||||
return -EINVAL;
|
||||
|
||||
*fd = buf.fd;
|
||||
|
|
Loading…
Add table
Reference in a new issue