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

Commit 870acba0 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: keep ocmem availability check while allocation"

parents a3387cc9 7bcf026d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1019,13 +1019,13 @@ static int __alloc_ocmem(void *dev, unsigned long size, bool locked)
	struct ocmem_buf *ocmem_buffer;
	struct venus_hfi_device *device = dev;

	if (device && !device->res->ocmem_size)
		return rc;
	if (!device || !size) {
		dprintk(VIDC_ERR, "%s Invalid param, core: %p, size: %lu\n",
			__func__, device, size);
		return -EINVAL;
	}
	if (!device->res->ocmem_size)
		return rc;

	ocmem_buffer = device->resources.ocmem.buf;
	if (!ocmem_buffer ||