Explorar o código

ALSA: lx6464es: Add a missing error check

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44541

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai %!s(int64=13) %!d(string=hai) anos
pai
achega
3bdcff70b6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      sound/pci/lx6464es/lx6464es.c

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

@@ -851,6 +851,8 @@ static int __devinit lx_pcm_create(struct lx6464es *chip)
 	/* hardcoded device name & channel count */
 	err = snd_pcm_new(chip->card, (char *)card_name, 0,
 			  1, 1, &pcm);
+	if (err < 0)
+		return err;
 
 	pcm->private_data = chip;