mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "msm: ADSPRPC: Map and FD non-NULL check before dereferencing"
This commit is contained in:
commit
d8da30ecb7
1 changed files with 4 additions and 3 deletions
|
|
@ -2210,9 +2210,10 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
|
|||
PERF_END);
|
||||
for (i = bufs; i < bufs + handles; ++i) {
|
||||
struct fastrpc_mmap *map = ctx->maps[i];
|
||||
|
||||
pages[i].addr = map->phys;
|
||||
pages[i].size = map->size;
|
||||
if (map) {
|
||||
pages[i].addr = map->phys;
|
||||
pages[i].size = map->size;
|
||||
}
|
||||
}
|
||||
fdlist = (uint64_t *)&pages[bufs + handles];
|
||||
crclist = (uint32_t *)&fdlist[M_FDLIST];
|
||||
|
|
|
|||
Loading…
Reference in a new issue