OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce610f2
)
msm: ADSPRPC: Do not pass offset for secure buffers
author
Sathish Ambley
<sathishambley@codeaurora.org>
Fri, 28 Oct 2016 16:50:42 +0000
(09:50 -0700)
committer
Sathish 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
patch
|
blob
|
history
diff --git
a/drivers/char/adsprpc.c
b/drivers/char/adsprpc.c
index
67c1207
..
ef8aaac
100644
(file)
--- 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,