mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e97249dd6d
commit
063bca0968
@ -1960,10 +1960,8 @@ static int dspxfr_image(struct hda_codec *codec,
|
||||
return -EINVAL;
|
||||
|
||||
dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL);
|
||||
if (!dma_engine) {
|
||||
status = -ENOMEM;
|
||||
goto exit;
|
||||
}
|
||||
if (!dma_engine)
|
||||
return -ENOMEM;
|
||||
memset((void *)dma_engine, 0, sizeof(*dma_engine));
|
||||
|
||||
dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL);
|
||||
|
Loading…
Reference in New Issue
Block a user