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>
This commit is contained in:
parent
265d931a9e
commit
3bdcff70b6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user