Skip to content

Commit

Permalink
ALSA: lx6464es: Add a missing error check
Browse files Browse the repository at this point in the history
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44541

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Aug 14, 2012
1 parent 265d931 commit 3bdcff7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/lx6464es/lx6464es.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3bdcff7

Please sign in to comment.