ALSA: cs5530: Fix resource leak in error path
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44741 Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
fbaf6a5a35
commit
5a798394c8
1 changed files with 1 additions and 2 deletions
|
@ -142,8 +142,7 @@ static int __devinit snd_cs5530_create(struct snd_card *card,
|
||||||
|
|
||||||
mem = pci_ioremap_bar(pci, 0);
|
mem = pci_ioremap_bar(pci, 0);
|
||||||
if (mem == NULL) {
|
if (mem == NULL) {
|
||||||
kfree(chip);
|
snd_cs5530_free(chip);
|
||||||
pci_disable_device(pci);
|
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue