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
@@ -772,11 +772,16 @@ static int compat_fastrpc_get_dsp_info(struct fastrpc_file *fl,
|
||||
struct fastrpc_ioctl_capability *info = NULL;
|
||||
compat_uint_t u;
|
||||
int err = 0;
|
||||
size_t info_size = 0;
|
||||
|
||||
info32 = compat_ptr(arg);
|
||||
VERIFY(err, NULL != (info = kmalloc(
|
||||
sizeof(*info), GFP_KERNEL)));
|
||||
|
||||
info_size = sizeof(*info);
|
||||
if (err) {
|
||||
ADSPRPC_ERR("allocation failed for size 0x%zx\n", info_size);
|
||||
return err;
|
||||
}
|
||||
err = get_user(u, &info32->domain);
|
||||
if (err)
|
||||
return err;
|
||||
|
在新工单中引用
屏蔽一个用户