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/rtl8192e/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
dot11d.h
ieee80211.h staging: trivial: fix typo "seperate" 2010-05-14 13:16:10 -07: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: Drop memory allocation cast 2010-05-11 16:06:48 -07:00
ieee80211_softmac.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
ieee80211_softmac_wx.c Staging: rtl9192e: fix power usage issues 2010-03-03 16:42:30 -08:00
ieee80211_tx.c Staging: rtl9192e: fix power usage issues 2010-03-03 16:42:30 -08:00
ieee80211_wx.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
rtl819x_BA.h
rtl819x_BAProc.c Staging: rtl8187x: Use %pM for mac address output 2010-03-03 16:42:29 -08:00
rtl819x_HT.h Staging: rtl9192e: fix power usage issues 2010-03-03 16:42:30 -08:00
rtl819x_HTProc.c staging: Fix misspelling of "should" and "shouldn't" in comments. 2010-03-03 16:42:31 -08:00
rtl819x_Qos.h staging: rtl8192x: sync the various rtl819x_Qos.h files 2010-05-11 15:08:23 -07:00
rtl819x_TS.h
rtl819x_TSProc.c staging: rtl8192x: sync the various rtl819x_TSProc.c files 2010-05-11 15:07:28 -07:00
rtl_crypto.h