summaryrefslogtreecommitdiffstats
path: root/sound/pci/lola/lola.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-03-05 13:55:09 +0300
committerTakashi Iwai <tiwai@suse.de>2014-03-05 12:10:15 +0100
commit7cf9bb21ee6df76a3a1eaa512a350cb1af00d544 (patch)
tree1344feb59777059eff9ba9c3d85b38a4f0af59a2 /sound/pci/lola/lola.c
parent31278997add61ee13b709e274934c7b0085accce (diff)
downloadlinux-7cf9bb21ee6df76a3a1eaa512a350cb1af00d544.tar.gz
linux-7cf9bb21ee6df76a3a1eaa512a350cb1af00d544.tar.bz2
linux-7cf9bb21ee6df76a3a1eaa512a350cb1af00d544.zip
ALSA: lola: NULL deref on allocation error
"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>
Diffstat (limited to 'sound/pci/lola/lola.c')
-rw-r--r--sound/pci/lola/lola.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c
index d63434d8c3fb..68824cdd137d 100644
--- 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;
}