linux/drivers/staging/hv
Julia Lawall 94002c07ff Staging: Use kmemdup
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-17 16:31:15 -07:00
..
blkvsc_drv.c Staging: hv: block_operations can be const 2010-05-11 14:15:34 -07:00
blkvsc.c Staging: hv: rename StorVsc.c to storvsc.c 2010-05-11 11:36:17 -07:00
channel_interface.c Staging: hv: rename VmbusPrivate.h to vmbus_private.h 2010-05-11 11:36:17 -07:00
channel_interface.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
channel_mgmt.c Staging: hv: rename VmbusPrivate.h to vmbus_private.h 2010-05-11 11:36:17 -07:00
channel_mgmt.h Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
channel.c staging: hv: Fix error checking in channel.c 2010-05-14 13:57:56 -07:00
channel.h Staging: hv: rename ChannelMgmt.c and .h to channel_mgmt.c and .h 2010-05-11 11:36:17 -07:00
connection.c Staging: hv: rename VmbusPrivate.h to vmbus_private.h 2010-05-11 11:36:17 -07:00
hv_api.h Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
hv_utils.c staging: hv: Optimize adj_guesttime function and add more detailed comments 2010-05-11 15:31:52 -07:00
hv.c Staging: hv: rename VmbusPrivate.h to vmbus_private.h 2010-05-11 11:36:17 -07:00
hv.h Staging: hv: rename Hv.h to hv.h 2010-05-11 11:36:16 -07:00
Kconfig staging: hv: make the block driver depend on LBDAF 2010-05-11 11:36:14 -07:00
logging.h staging: hv: remove ASSERT in logging.h 2010-05-11 11:36:15 -07:00
Makefile Staging: hv: rename ChannelInterface.c and .h to channel_interface.c and .h 2010-05-11 11:36:17 -07:00
netvsc_api.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
netvsc_drv.c Staging: hv: auto-load MSFT PV NIC driver 2010-05-14 13:11:30 -07:00
netvsc.c Staging: hv: rename RndisFilter.c and .h to rndis_filter.c and .h 2010-05-11 11:36:17 -07:00
netvsc.h Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
osd.c staging: hv: Corrected all header comment formats kernel-doc format 2010-05-11 11:35:32 -07:00
osd.h Staging: hv: fix oops in vmbus - missing #include 2009-10-30 14:47:43 -07:00
ring_buffer.c Staging: hv: rename RingBuffer.c and .h to ring_buffer.c and .h 2010-05-11 11:36:16 -07:00
ring_buffer.h Staging: hv: rename RingBuffer.c and .h to ring_buffer.c and .h 2010-05-11 11:36:16 -07:00
rndis_filter.c Staging: hv: rename NetVscApi.h to netvsc_api.h 2010-05-11 11:36:17 -07:00
rndis_filter.h Staging: hv: rename RndisFilter.c and .h to rndis_filter.c and .h 2010-05-11 11:36:17 -07:00
rndis.h Staging: hv: trivial whitespace fixes found by checkpatch.pl 2010-05-11 11:35:36 -07:00
storvsc_api.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
storvsc_drv.c Staging: hv: storvsc module descriptions 2010-05-11 14:15:34 -07:00
storvsc.c Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
TODO Staging: hv: use network device stats 2010-05-11 11:35:34 -07:00
utils.h Staging: hv: util.h: fix up space mess again 2010-05-11 11:36:15 -07:00
version_info.h Staging: hv: rename VersionInfo.h to version_info.h 2010-05-11 11:36:18 -07:00
vmbus_api.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
vmbus_channel_interface.h Staging: hv: rename VmbusChannelInterface.h to vmbus_channel_interface.h 2010-05-11 11:36:17 -07:00
vmbus_drv.c Staging: hv: rename VersionInfo.h to version_info.h 2010-05-11 11:36:18 -07:00
vmbus_packet_format.h Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
vmbus_private.h Staging: hv: rename VmbusPrivate.h to vmbus_private.h 2010-05-11 11:36:17 -07:00
vmbus.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
vmbus.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
vstorage.h Staging: hv: fix spaces coding style issue in vstorage.h 2010-05-11 11:35:38 -07:00