From 1a8a029dcabad06760a545902f9f9f9db14825dd Mon Sep 17 00:00:00 2001 From: Sathish Ambley Date: Fri, 28 Oct 2016 09:50:42 -0700 Subject: [PATCH] msm: ADSPRPC: Do not pass offset for secure buffers The secure buffers does not allow passing offset into the buffer and hence skip calculation of offset for secure buffers. Change-Id: I2cd3b87aca032d4c5868cc9db35987213349a337 Signed-off-by: Sathish Ambley --- drivers/char/adsprpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 67c1207d35be..ef8aaac6e0a2 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -1070,7 +1070,7 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx) int idx = list[i].pgidx; if (map->attr & FASTRPC_ATTR_NOVA) { - offset = (uintptr_t)lpra[i].buf.pv; + offset = 0; } else { down_read(¤t->mm->mmap_sem); VERIFY(err, NULL != (vma = find_vma(current->mm,