projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265d931
)
ALSA: lx6464es: Add a missing error check
author
Takashi Iwai
<tiwai@suse.de>
Tue, 14 Aug 2012 15:42:11 +0000
(17:42 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 14 Aug 2012 15:42:11 +0000
(17:42 +0200)
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44541
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/lx6464es/lx6464es.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/lx6464es/lx6464es.c
b/sound/pci/lx6464es/lx6464es.c
index d1ab43706735fb42d12cc8514b48b9add557b5c2..5579b08bb35b6337c646b6d2cb6be5215f0d01d9 100644
(file)
--- a/
sound/pci/lx6464es/lx6464es.c
+++ b/
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;