commit | 5a798394c85f3bca963505d3be49180416fce132 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Thu Aug 30 13:21:00 2012 -0700 |
committer | Takashi Iwai <tiwai@suse.de> | Thu Aug 30 13:21:00 2012 -0700 |
tree | c77c37e8a6a63d9f2b24c925cb07730e358a2c1e | |
parent | fbaf6a5a35a830c2ae0449210efa31c165445735 [diff] |
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>
diff --git a/sound/pci/cs5530.c b/sound/pci/cs5530.c index f1e4229..d1cca28 100644 --- a/sound/pci/cs5530.c +++ b/sound/pci/cs5530.c
@@ -142,8 +142,7 @@ mem = pci_ioremap_bar(pci, 0); if (mem == NULL) { - kfree(chip); - pci_disable_device(pci); + snd_cs5530_free(chip); return -EBUSY; }