msm: adsprpc: To avoid null pointer dereference
To log error for fastrpc_mmap_remove_ssr and compat_fastrpc_get_dsp_info for avoiding null pointer dereferences leading to kw issues. Change-Id: I0f759ce5d9c3100a5cff3e61ad1499f6eb1b55dd Signed-off-by: Ansa Ahmed <ansaahme@qti.qualcomm.com>
Цей коміт міститься в:

зафіксовано
Gerrit - the friendly Code Review server

джерело
9f5f25be96
коміт
bfd12fbf25
@@ -4713,7 +4713,7 @@ static int fastrpc_mmap_remove_ssr(struct fastrpc_file *fl, int locked)
|
||||
match = NULL;
|
||||
spin_lock_irqsave(&me->hlock, irq_flags);
|
||||
hlist_for_each_entry_safe(map, n, &me->maps, hn) {
|
||||
if (map->servloc_name &&
|
||||
if (map->servloc_name && fl &&
|
||||
fl->servloc_name && !strcmp(map->servloc_name, fl->servloc_name)) {
|
||||
match = map;
|
||||
if (map->is_persistent && map->in_use) {
|
||||
@@ -8287,8 +8287,9 @@ static int __init fastrpc_device_init(void)
|
||||
VERIFY(err, NULL != (buf = kzalloc(sizeof(*buf), GFP_KERNEL)));
|
||||
if (err) {
|
||||
err = -ENOMEM;
|
||||
ADSPRPC_WARN("%s: CMA alloc failed err 0x%x\n",
|
||||
ADSPRPC_ERR("%s: CMA alloc failed err 0x%x\n",
|
||||
__func__, err);
|
||||
goto device_create_bail;
|
||||
}
|
||||
INIT_HLIST_NODE(&buf->hn);
|
||||
buf->virt = region_vaddr;
|
||||
|
Посилання в новій задачі
Заблокувати користувача