From: Takashi Iwai Date: Fri, 21 Sep 2012 11:44:34 +0000 (+0200) Subject: ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=063bca096829e2fdfc2bde7b6b2a7453bf9b7218;p=deliverable%2Flinux.git ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 5c6a0569c611..03f57c98b54e 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -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);