projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feabb67
)
ALSA: pcxhr: NULL dereference on probe failure
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 10 Dec 2014 13:26:21 +0000
(16:26 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 10 Dec 2014 13:45:22 +0000
(14:45 +0100)
"card" is NULL if snd_card_new() fails.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/pcxhr/pcxhr.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/pcxhr/pcxhr.c
b/sound/pci/pcxhr/pcxhr.c
index a60293015267d2e3dbb7c8f317460e4b682d1dfb..c6092e48ceb6a4bc9aafe769cb07f637751adc6d 100644
(file)
--- a/
sound/pci/pcxhr/pcxhr.c
+++ b/
sound/pci/pcxhr/pcxhr.c
@@
-1638,7
+1638,7
@@
static int pcxhr_probe(struct pci_dev *pci,
0, &card);
if (err < 0) {
- dev_err(
card
->dev, "cannot allocate the card %d\n", i);
+ dev_err(
&pci
->dev, "cannot allocate the card %d\n", i);
pcxhr_free(mgr);
return err;
}