Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/staging/rtl8187se/ieee80211
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
..
dot11d.c Staging: rtl8187se: remove dead code 2009-09-15 12:01:30 -07:00
dot11d.h Staging: rtl8187se/ieee80211: remove unused dump_chnl_map() 2009-09-15 12:01:28 -07:00
ieee80211.h Staging: merge staging patches into Linus's main branch 2010-03-04 08:39:02 -08:00
ieee80211_crypt.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
ieee80211_crypt.h
ieee80211_crypt_ccmp.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
ieee80211_crypt_tkip.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
ieee80211_crypt_wep.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
ieee80211_module.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
ieee80211_rx.c Staging: rtl8187se: Do not autoconnect based on probe response 2010-05-11 11:35:54 -07:00
ieee80211_softmac.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
ieee80211_softmac_wx.c Staging: rtl8187se: Do not mess with carrier settings while scanning 2010-05-11 11:35:54 -07:00
ieee80211_tx.c Staging: rtl8187x: Use %pM for mac address output 2010-03-03 16:42:29 -08:00
ieee80211_wx.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00