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

Commit f8412a99 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: Check size with length passed by client"

parents 3dbca6f8 94190fc1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1070,6 +1070,10 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd,
		}
		trace_fastrpc_dma_map(fl->cid, fd, map->phys, map->size,
			len, mflags, map->attach->dma_map_attrs);
		if (map->size < len) {
			err = -EFAULT;
			goto bail;
		}

		vmid = fl->apps->channel[fl->cid].vmid;
		if (!sess->smmu.enabled && !vmid) {