mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
msm: ADSPRPC: Handle Null pointer De-reference
Retrieved tgid from current process instead of mapping for naming the minidump region. Change-Id: I598606577c63794f495c9ca92adc951c088046be Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com> Acked-by: Gururaj Chalgeri <gchalger@qti.qualcomm.com> Signed-off-by: Jeya R <jeyr@codeaurora.org>
This commit is contained in:
parent
d1d92738ec
commit
1a2ea5094c
1 changed files with 2 additions and 2 deletions
|
|
@ -1164,14 +1164,14 @@ static void fastrpc_mmap_free(struct fastrpc_mmap *map, uint32_t flags)
|
|||
return;
|
||||
}
|
||||
if (msm_minidump_enabled()) {
|
||||
scnprintf(md_entry.name, sizeof(md_entry.name), "CMA_%d", fl->tgid);
|
||||
scnprintf(md_entry.name, sizeof(md_entry.name), "CMA_%d", current->tgid);
|
||||
md_entry.virt_addr = map->va;
|
||||
md_entry.phys_addr = map->phys;
|
||||
md_entry.size = map->size;
|
||||
if (msm_minidump_remove_region(&md_entry) < 0) {
|
||||
ADSPRPC_ERR(
|
||||
"Failed to remove CMA from Minidump for tgid: %d, phys: 0x%llx, size: %zu\n",
|
||||
fl->tgid, map->phys, map->size);
|
||||
current->tgid, map->phys, map->size);
|
||||
}
|
||||
}
|
||||
trace_fastrpc_dma_free(-1, map->phys, map->size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue