asoc: lpass-cdc: add null pointer check in register_notifier func
Add null pointer check in register_notifier funcion. Change-Id: Icba3776cbf33095dc8bdf32ed7b6c749e639a11b
这个提交包含在:

提交者
Gerrit - the friendly Code Review server

父节点
3038c0281b
当前提交
6b2a5ea4d9
@@ -233,8 +233,8 @@ static int lpass_cdc_register_notifier(void *handle,
|
||||
{
|
||||
struct lpass_cdc_priv *priv = (struct lpass_cdc_priv *)handle;
|
||||
|
||||
if (!priv) {
|
||||
pr_err_ratelimited("%s: lpass_cdc priv is null\n", __func__);
|
||||
if (!priv || !nblock) {
|
||||
pr_err_ratelimited("%s: lpass_cdc priv or nblock is null\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (enable)
|
||||
|
在新工单中引用
屏蔽一个用户