projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'asoc-v5.19' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[linux-2.6-microblaze.git]
/
sound
/
pci
/
cmipci.c
diff --git
a/sound/pci/cmipci.c
b/sound/pci/cmipci.c
index
dab801d
..
727db6d
100644
(file)
--- a/
sound/pci/cmipci.c
+++ b/
sound/pci/cmipci.c
@@
-3247,15
+3247,19
@@
static int snd_cmipci_probe(struct pci_dev *pci,
err = snd_cmipci_create(card, pci, dev);
if (err < 0)
err = snd_cmipci_create(card, pci, dev);
if (err < 0)
-
return er
r;
+
goto erro
r;
err = snd_card_register(card);
if (err < 0)
err = snd_card_register(card);
if (err < 0)
-
return er
r;
+
goto erro
r;
pci_set_drvdata(pci, card);
dev++;
return 0;
pci_set_drvdata(pci, card);
dev++;
return 0;
+
+ error:
+ snd_card_free(card);
+ return err;
}
#ifdef CONFIG_PM_SLEEP
}
#ifdef CONFIG_PM_SLEEP