Skip to content

Commit 063bca0

Browse files
committed
ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c
Signed-off-by: Takashi Iwai <[email protected]>
1 parent e97249d commit 063bca0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sound/pci/hda/patch_ca0132.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,10 +1960,8 @@ static int dspxfr_image(struct hda_codec *codec,
19601960
return -EINVAL;
19611961

19621962
dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL);
1963-
if (!dma_engine) {
1964-
status = -ENOMEM;
1965-
goto exit;
1966-
}
1963+
if (!dma_engine)
1964+
return -ENOMEM;
19671965
memset((void *)dma_engine, 0, sizeof(*dma_engine));
19681966

19691967
dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL);

0 commit comments

Comments
 (0)