You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Takashi Iwai
parent
51721f70ac
commit
aa3d75d80d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user