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

Commit 3819dbb8 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 ion_handle for errors"

parents 32fda513 b5102a01
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -476,7 +476,8 @@ bool msm_smem_compare_buffers(void *clt, int fd, void *priv)
	}
	handle = ion_import_dma_buf_fd(client->clnt, fd);
	ret = handle == priv;
	handle ? ion_free(client->clnt, handle) : 0;
	if (!IS_ERR_OR_NULL(handle))
		ion_free(client->clnt, handle);
	return ret;
}