projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3127899
)
ALSA: lola: NULL deref on allocation error
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 5 Mar 2014 10:55:09 +0000
(13:55 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 5 Mar 2014 11:10:15 +0000
(12:10 +0100)
"chip" is NULL here. We don't need a printk here because kmalloc() has
it built in.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/lola/lola.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/lola/lola.c
b/sound/pci/lola/lola.c
index d63434d8c3fbfc6a9a7abac4b4e3bc8df06854d4..68824cdd137de7bcfc8c80397c59f558970e070b 100644
(file)
--- a/
sound/pci/lola/lola.c
+++ b/
sound/pci/lola/lola.c
@@
-586,7
+586,6
@@
static int lola_create(struct snd_card *card, struct pci_dev *pci,
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
if (!chip) {
- dev_err(chip->card->dev, "cannot allocate chip\n");
pci_disable_device(pci);
return -ENOMEM;
}