projects
/
GitHub
/
moto-9609
/
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:
fbaf6a5
)
ALSA: cs5530: Fix resource leak in error path
author
Takashi Iwai
<tiwai@suse.de>
Thu, 30 Aug 2012 20:21:00 +0000
(13:21 -0700)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 30 Aug 2012 20:21:00 +0000
(13:21 -0700)
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44741
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/cs5530.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/cs5530.c
b/sound/pci/cs5530.c
index f1e4229993af198a23afb4f33a93f1153251e9b5..d1cca2831575973dac041b49d066afa404b89f0d 100644
(file)
--- a/
sound/pci/cs5530.c
+++ b/
sound/pci/cs5530.c
@@
-142,8
+142,7
@@
static int __devinit snd_cs5530_create(struct snd_card *card,
mem = pci_ioremap_bar(pci, 0);
if (mem == NULL) {
- kfree(chip);
- pci_disable_device(pci);
+ snd_cs5530_free(chip);
return -EBUSY;
}