Skip to content

Commit

Permalink
ALSA: lx6464es: Missing error code in snd_lx6464es_create()
Browse files Browse the repository at this point in the history
We forgot to set the error code on this error path.

Fixes: 4a23fc8 ("ALSA: lx6464es: add error handling for pci_ioremap_bar")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Dan Carpenter authored and tiwai committed Jun 21, 2018
1 parent a57a46b commit f04684b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/lx6464es/lx6464es.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f04684b

Please sign in to comment.