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
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
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
hci_vhci.c
Bluetooth: Fix wrong packet type count increment
2010-05-10 09:28:45 +02:00
Kconfig
Makefile