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

Commit b17afbac authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ADSPRPC: Skip file mapping for static shell"

parents 0eee5bf0 b6465ddd
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1381,10 +1381,12 @@ static int fastrpc_init_process(struct fastrpc_file *fl,
		inbuf.pgid = current->tgid;
		inbuf.namelen = strlen(current->comm) + 1;
		inbuf.filelen = init->filelen;
		VERIFY(err, !fastrpc_mmap_create(fl, init->filefd, init->file,
					init->filelen, mflags, &file));
		if (init->filelen) {
			VERIFY(err, !fastrpc_mmap_create(fl, init->filefd,
				init->file, init->filelen, mflags, &file));
			if (err)
				goto bail;
		}
		inbuf.pageslen = 1;
		VERIFY(err, !fastrpc_mmap_create(fl, init->memfd, init->mem,
					init->memlen, mflags, &mem));