Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a798394 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: cs5530: Fix resource leak in error path

parent fbaf6a5a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -142,8 +142,7 @@ static int __devinit snd_cs5530_create(struct snd_card *card,

	mem = pci_ioremap_bar(pci, 0);
	if (mem == NULL) {
		kfree(chip);
		pci_disable_device(pci);
		snd_cs5530_free(chip);
		return -EBUSY;
	}