提交 2448b147 编写于 作者: D Dan Carpenter 提交者: Takashi Iwai

ALSA: asihpi: testing the wrong variable

There is a typo here.  We want to test "*dst" not "dst".
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 b0fb75ad
......@@ -3279,7 +3279,7 @@ static u16 hpi_entity_alloc_and_copy(struct hpi_entity *src,
buf_size = hpi_entity_size(src);
*dst = kmalloc(buf_size, GFP_KERNEL);
if (dst == NULL)
if (*dst == NULL)
return HPI_ERROR_MEMORY_ALLOC;
memcpy(*dst, src, buf_size);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部