Gitweb: http://git.kernel.org/linus/aa3d75d80de464cf23af1d068a5e22f1527b6957 Commit: aa3d75d80de464cf23af1d068a5e22f1527b6957 Parent: 51721f70acaca5aa056b07c5cbe58e62662c068c Author: Takashi Iwai <tiwai@alsa3.local> AuthorDate: Sun Dec 28 16:59:41 2008 +0100 Committer: Takashi Iwai <tiwai@suse.de> CommitDate: Mon Jan 12 15:21:56 2009 +0100 ALSA: pdaudiocf - Fix missing free in the error path 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 | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c index 183f661..ec51569 100644 --- 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); -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
