summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-09-21 13:44:34 +0200
committerTakashi Iwai <tiwai@suse.de>2012-11-28 08:47:29 +0100
commit063bca096829e2fdfc2bde7b6b2a7453bf9b7218 (patch)
tree111063abe6dd529265370d8a3b2e31a361fab169 /sound/pci
parente97249dd6d70b657a4c6bc47e436b2b981031144 (diff)
downloadop-kernel-dev-063bca096829e2fdfc2bde7b6b2a7453bf9b7218.zip
op-kernel-dev-063bca096829e2fdfc2bde7b6b2a7453bf9b7218.tar.gz
ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_ca0132.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c
index 5c6a056..03f57c9 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);
OpenPOWER on IntegriCloud