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:
Carter Cooper 2016-06-20 15:25:45 -06:00
parent a0c892b3a6
commit f2af84b10c

View file

@ -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;