diff options
author | Takashi Iwai <tiwai@alsa3.local> | 2008-12-28 18:59:41 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-12 17:21:56 +0300 |
commit | aa3d75d80de464cf23af1d068a5e22f1527b6957 (patch) | |
tree | 8fcdf322f539222ae78de41b8502cef5512bd95e /sound/pcmcia | |
parent | 51721f70acaca5aa056b07c5cbe58e62662c068c (diff) | |
download | linux-aa3d75d80de464cf23af1d068a5e22f1527b6957.tar.xz |
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>
Diffstat (limited to 'sound/pcmcia')
-rw-r--r-- | 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 183f6615c68c..ec51569fd50d 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); |