Browse Source

ALSA: lx6464es: Missing error code in snd_lx6464es_create()

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

Fixes: 4a23fc8cc068 ("ALSA: lx6464es: add error handling for pci_ioremap_bar")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Dan Carpenter 7 years ago
parent
commit
f04684b4d8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sound/pci/lx6464es/lx6464es.c

+ 1 - 0
sound/pci/lx6464es/lx6464es.c

@@ -1018,6 +1018,7 @@ static int snd_lx6464es_create(struct snd_card *card,
 	chip->port_dsp_bar = pci_ioremap_bar(pci, 2);
 	if (!chip->port_dsp_bar) {
 		dev_err(card->dev, "cannot remap PCI memory region\n");
+		err = -ENOMEM;
 		goto remap_pci_failed;
 	}