patch-2.4.18 linux/drivers/sound/btaudio.c
Next file: linux/drivers/sound/cs4232.c
Previous file: linux/drivers/sound/aedsp16.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Jan 14 18:53:53 2002
- Orig file:
linux.orig/drivers/sound/btaudio.c
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/sound/btaudio.c linux/drivers/sound/btaudio.c
@@ -885,6 +885,12 @@
}
bta = kmalloc(sizeof(*bta),GFP_ATOMIC);
+ if (!bta) {
+ printk(KERN_WARNING
+ "btaudio: not enough memory\n");
+ rc = -ENOMEM;
+ goto fail1;
+ }
memset(bta,0,sizeof(*bta));
bta->pci = pci_dev;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)