alistair23-linux/drivers/staging/rtl8192u/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
..
aes.c Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
api.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
arc4.c Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
autoload.c Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
cipher.c Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
compress.c Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
crypto_compat.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
digest.c Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
dot11d.c Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
dot11d.h Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
EndianFree.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
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 Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
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: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
ieee80211_tx.c Staging: remove unused #include <linux/version.h> 2010-05-11 11:35:36 -07:00
ieee80211_wx.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
internal.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
kmap_types.h Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
Makefile Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
michael_mic.c Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
proc.c Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
rtl819x_BA.h Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
rtl819x_BAProc.c Staging: rtl8187x: Use %pM for mac address output 2010-03-03 16:42:29 -08:00
rtl819x_HT.h Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
rtl819x_HTProc.c Staging: rtl8192u: ieee80211: CurrentMPDUDensity assigned to itself in HTUseDefaultSetting() 2010-03-03 16:42:44 -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 Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
rtl819x_TSProc.c staging: rtl8192x: sync the various rtl819x_TSProc.c files 2010-05-11 15:07:28 -07:00
rtl_crypto.h Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
scatterwalk.c Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00
scatterwalk.h Staging: Added Realtek rtl8192u driver to staging 2009-12-11 12:23:22 -08:00