projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51721f7
)
ALSA: pdaudiocf - Fix missing free in the error path
author
Takashi Iwai
<tiwai@alsa3.local>
Sun, 28 Dec 2008 15:59:41 +0000
(16:59 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 12 Jan 2009 14:21:56 +0000
(15:21 +0100)
Added the missing snd_card_free() in the error path of probe callback.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pcmcia/pdaudiocf/pdaudiocf.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pcmcia/pdaudiocf/pdaudiocf.c
b/sound/pcmcia/pdaudiocf/pdaudiocf.c
index 183f6615c68c903c8fdeae5e0595f3c21a354c3a..ec51569fd50dc0dbe330f636c09aa4ca17b75ee6 100644
(file)
--- a/
sound/pcmcia/pdaudiocf/pdaudiocf.c
+++ b/
sound/pcmcia/pdaudiocf/pdaudiocf.c
@@
-119,8
+119,10
@@
static int snd_pdacf_probe(struct pcmcia_device *link)
}
pdacf = snd_pdacf_create(card);
- if (! pdacf)
+ if (!pdacf) {
+ snd_card_free(card);
return -EIO;
+ }
if (snd_device_new(card, SNDRV_DEV_LOWLEVEL, pdacf, &ops) < 0) {
kfree(pdacf);