projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e97249d
)
ALSA: hda - Fix NULL dereference in error path of patch_ca0132.c
author
Takashi Iwai
<tiwai@suse.de>
Fri, 21 Sep 2012 11:44:34 +0000
(13:44 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 28 Nov 2012 07:47:29 +0000
(08:47 +0100)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_ca0132.c
b/sound/pci/hda/patch_ca0132.c
index 5c6a0569c6119b0bd7ab144bf39760d4daa519ab..03f57c98b54e59a922c8fde4c468bdcb00145004 100644
(file)
--- 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);