diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-09-21 07:44:34 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-11-28 02:47:29 -0500 |
commit | 063bca096829e2fdfc2bde7b6b2a7453bf9b7218 (patch) | |
tree | 111063abe6dd529265370d8a3b2e31a361fab169 /sound/pci/hda | |
parent | e97249dd6d70b657a4c6bc47e436b2b981031144 (diff) |
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/hda')
-rw-r--r-- | sound/pci/hda/patch_ca0132.c | 6 |
1 files changed, 2 insertions, 4 deletions
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, | |||
1960 | return -EINVAL; | 1960 | return -EINVAL; |
1961 | 1961 | ||
1962 | dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL); | 1962 | dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL); |
1963 | if (!dma_engine) { | 1963 | if (!dma_engine) |
1964 | status = -ENOMEM; | 1964 | return -ENOMEM; |
1965 | goto exit; | ||
1966 | } | ||
1967 | memset((void *)dma_engine, 0, sizeof(*dma_engine)); | 1965 | memset((void *)dma_engine, 0, sizeof(*dma_engine)); |
1968 | 1966 | ||
1969 | dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL); | 1967 | dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL); |