linux/drivers/bluetooth
Julia Lawall 5ee283c063 Bluetooth: Use kmemdup for drivers
Use kmemdup when some other buffer is immediately copied into the
allocated region.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression from,to,size,flag;
statement S;
@@

-  to = \(kmalloc\|kzalloc\)(size,flag);
+  to = kmemdup(from,size,flag);
   if (to==NULL || ...) S
-  memcpy(to, from, size);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2010-07-21 10:39:06 -07:00
..
ath3k.c Bluetooth: Add missing kfree() on error path in Atheros driver 2010-02-27 14:05:38 +01:00
bcm203x.c Bluetooth: Use kmemdup for drivers 2010-07-21 10:39:06 -07:00
bfusb.c Bluetooth: Convert controller hdev->type to hdev->bus 2010-02-27 14:05:38 +01:00
bluecard_cs.c drivers: bluetooth: bluecard_cs.c: Fixed include error, changed to linux/io.h 2010-07-01 21:28:14 -07:00
bpa10x.c Bluetooth: Convert controller hdev->type to hdev->bus 2010-02-27 14:05:38 +01:00
bt3c_cs.c pcmcia: dev_node removal (write-only drivers) 2010-05-10 10:23:14 +02:00
btmrvl_debugfs.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
btmrvl_drv.h Bluetooth: Process interrupt in main thread of btmrvl driver as well 2010-07-21 10:39:06 -07:00
btmrvl_main.c Bluetooth: Process interrupt in main thread of btmrvl driver as well 2010-07-21 10:39:06 -07:00
btmrvl_sdio.c Bluetooth: Process interrupt in main thread of btmrvl driver as well 2010-07-21 10:39:06 -07:00
btmrvl_sdio.h Bluetooth: Fix incorrect alignment in Marvell BT-over-SDIO driver 2009-08-22 14:25:34 -07:00
btsdio.c Bluetooth: Convert controller hdev->type to hdev->bus 2010-02-27 14:05:38 +01:00
btuart_cs.c pcmcia: dev_node removal (write-only drivers) 2010-05-10 10:23:14 +02:00
btusb.c Bluetooth: Convert controller hdev->type to hdev->bus 2010-02-27 14:05:38 +01:00
dtl1_cs.c pcmcia: dev_node removal (write-only drivers) 2010-05-10 10:23:14 +02:00
hci_bcsp.c Bluetooth: Fix abuse of the preincrement operator 2010-06-30 13:10:09 -07:00
hci_h4.c Bluetooth: Fix return value when bt_skb_alloc fails 2010-05-10 09:28:45 +02:00
hci_ldisc.c Bluetooth: Fix warning: variable 'tty' set but not used 2010-07-21 10:39:05 -07:00
hci_ll.c Bluetooth: Use the proper function cast to get hdr data 2010-05-10 09:28:45 +02:00
hci_uart.h [Bluetooth] Add UART driver for Texas Instruments' BRF63xx chips 2007-10-22 02:59:44 -07:00
hci_vhci.c Bluetooth: Fix wrong packet type count increment 2010-05-10 09:28:45 +02:00
Kconfig Bluetooth: Add DFU driver for Atheros Bluetooth chipset AR3011 2010-01-30 05:57:34 -08:00
Makefile Bluetooth: Add DFU driver for Atheros Bluetooth chipset AR3011 2010-01-30 05:57:34 -08:00