提交 f04684b4 编写于 作者: D Dan Carpenter 提交者: Takashi Iwai

ALSA: lx6464es: Missing error code in snd_lx6464es_create()

We forgot to set the error code on this error path.

Fixes: 4a23fc8c ("ALSA: lx6464es: add error handling for pci_ioremap_bar")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 a57a46b9
...@@ -1018,6 +1018,7 @@ static int snd_lx6464es_create(struct snd_card *card, ...@@ -1018,6 +1018,7 @@ static int snd_lx6464es_create(struct snd_card *card,
chip->port_dsp_bar = pci_ioremap_bar(pci, 2); chip->port_dsp_bar = pci_ioremap_bar(pci, 2);
if (!chip->port_dsp_bar) { if (!chip->port_dsp_bar) {
dev_err(card->dev, "cannot remap PCI memory region\n"); dev_err(card->dev, "cannot remap PCI memory region\n");
err = -ENOMEM;
goto remap_pci_failed; goto remap_pci_failed;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册