OSDN Git Service

msm: ADSPRPC: Do not pass offset for secure buffers
authorSathish Ambley <sathishambley@codeaurora.org>
Fri, 28 Oct 2016 16:50:42 +0000 (09:50 -0700)
committerSathish Ambley <sathishambley@codeaurora.org>
Fri, 28 Oct 2016 16:50:42 +0000 (09:50 -0700)
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 <sathishambley@codeaurora.org>
drivers/char/adsprpc.c

index 67c1207..ef8aaac 100644 (file)
@@ -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(&current->mm->mmap_sem);
                                VERIFY(err, NULL != (vma = find_vma(current->mm,