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

Commit be01acb0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Correct dma_buf_get function return value check"

parents 89cc5b4c 88fe3fc8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2144,8 +2144,8 @@ static int kgsl_setup_dmabuf_useraddr(struct kgsl_device *device,
	}
	up_read(&current->mm->mmap_sem);

	if (dmabuf == NULL)
		return -ENODEV;
	if (IS_ERR_OR_NULL(dmabuf))
		return dmabuf ? PTR_ERR(dmabuf) : -ENODEV;

	ret = kgsl_setup_dma_buf(device, pagetable, entry, dmabuf);
	if (ret) {