Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72db2620 authored by Carter Cooper's avatar Carter Cooper
Browse files

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: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 450bd44d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;