1
linux/drivers/staging/rtl8192u
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
..
ieee80211 Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
authors
changes
copying
dot11d.h Staging: rtl8192u: fix comments and space coding style issue in dot11d.h 2010-05-11 11:35:55 -07:00
ieee80211_crypt.h Staging: rtl8192u: fix space coding style issue in ieee80211_crypt.h 2010-05-11 11:35:55 -07:00
ieee80211.h staging: trivial: fix typo "seperate" 2010-05-14 13:16:10 -07:00
Kconfig
Makefile
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c
r819xU_firmware.h
r819xU_HTGen.h
r819xU_HTType.h
r819xU_phy.c
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c
r8180_93cx6.h
r8180_pm.c
r8180_pm.h
r8190_rtl8256.c
r8190_rtl8256.h
r8192U_core.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
r8192U_dm.c
r8192U_dm.h
r8192U_hw.h
r8192U_wx.c
r8192U_wx.h
r8192U.h