Commit 063bca09 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e97249dd
...@@ -1960,10 +1960,8 @@ static int dspxfr_image(struct hda_codec *codec, ...@@ -1960,10 +1960,8 @@ static int dspxfr_image(struct hda_codec *codec,
return -EINVAL; return -EINVAL;
dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL); dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL);
if (!dma_engine) { if (!dma_engine)
status = -ENOMEM; return -ENOMEM;
goto exit;
}
memset((void *)dma_engine, 0, sizeof(*dma_engine)); memset((void *)dma_engine, 0, sizeof(*dma_engine));
dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL); dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment