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

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

Merge "msm: ADSPRPC: Remove duplicate map size check during map create"

parents 9fcb976e 01af0939
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1088,10 +1088,6 @@ 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;
		}

		VERIFY(err, map->size >= len && map->size < me->max_size_limit);
		if (err) {