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

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

Merge "msm: vidc: Check the return type of ION API properly"

parents b60fa5d7 ea9b8bd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ static int alloc_ion_mem(struct smem_client *client, size_t size, u32 align,
	mem->buffer_type = buffer_type;
	if (map_kernel) {
		mem->kvaddr = ion_map_kernel(client->clnt, hndl);
		if (!mem->kvaddr) {
		if (IS_ERR(mem->kvaddr) || !mem->kvaddr) {
			dprintk(VIDC_ERR,
				"Failed to map shared mem in kernel\n");
			rc = -EIO;