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

Commit 01af0939 authored by Jeya R's avatar Jeya R
Browse files

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



Current mmap create does a map size check in one of the case
to avoid SMMU faults. There is a duplicate check for the same
and logs are not getting printed properly if map size is not
proper.

Change-Id: I8acd321b7204968b5edd9457dba07eddd893e1bf
Acked-by: default avatarEkansh Gupta <ekangupt@qti.qualcomm.com>
Signed-off-by: default avatarJeya R <jeyr@codeaurora.org>
parent c77acc02
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) {