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

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

Merge "msm:adsprpc: Fixed NULL dereference in getargs()"

parents 1eb1237f 016f1444
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2342,10 +2342,12 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
		}
	}
	PERF_END);
	for (i = bufs; rpra && i < bufs + handles; i++) {

	for (i = bufs; ctx->fds && rpra && i < bufs + handles; i++) {
		rpra[i].dma.fd = ctx->fds[i];
		rpra[i].dma.len = (uint32_t)lpra[i].buf.len;
		rpra[i].dma.offset = (uint32_t)(uintptr_t)lpra[i].buf.pv;
		rpra[i].dma.offset =
				(uint32_t)(uintptr_t)lpra[i].buf.pv;
	}

	/* Copy rpra to local buffer */