linux/drivers/net/wireless
Julia Lawall a906b060b0 drivers/net/wireless/prism54: Use memdup_user
Use memdup_user when user data is immediately copied into the
allocated region.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression from,to,size,flag;
position p;
identifier l1,l2;
@@

-  to = \(kmalloc@p\|kzalloc@p\)(size,flag);
+  to = memdup_user(from,size);
   if (
-      to==NULL
+      IS_ERR(to)
                 || ...) {
   <+... when != goto l1;
-  -ENOMEM
+  PTR_ERR(to)
   ...+>
   }
-  if (copy_from_user(to, from, size) != 0) {
-    <+... when != goto l2;
-    -EFAULT
-    ...+>
-  }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-06-02 16:13:32 -04:00
..
ath ath9k: Fix bug in validating received data length for edma 2010-06-02 16:13:32 -04:00
b43 drivers/net/wireless/b43: Use kmemdup 2010-06-02 16:13:11 -04:00
b43legacy Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-05 16:14:16 -04:00
hostap Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-05-20 21:04:44 -07:00
ipw2x00 drivers/net/wireless/ipw2x00: Use kmemdup 2010-06-02 16:13:12 -04:00
iwlwifi drivers/net/wireless: Storage class should be before const qualifier 2010-06-02 16:13:29 -04:00
iwmc3200wifi wireless: fix several minor description typos 2010-06-02 16:13:18 -04:00
libertas wireless: fix several minor description typos 2010-06-02 16:13:18 -04:00
libertas_tf drivers/net/wireless/libertas_tf: Use kmemdup 2010-06-02 16:13:10 -04:00
orinoco wireless: fix several minor description typos 2010-06-02 16:13:18 -04:00
p54 drivers/net/wireless/p54: Use kmemdup 2010-06-02 16:13:12 -04:00
prism54 drivers/net/wireless/prism54: Use memdup_user 2010-06-02 16:13:32 -04:00
rt2x00 wireless: fix several minor description typos 2010-06-02 16:13:18 -04:00
rtl818x Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-11 14:24:55 -04:00
wl12xx drivers/net/wireless: Storage class should be before const qualifier 2010-06-02 16:13:29 -04:00
zd1211rw wireless: fix several minor description typos 2010-06-02 16:13:18 -04:00
adm8211.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-04-11 14:53:53 -07:00
adm8211.h
airo_cs.c pcmcia: dev_node removal (drivers with updated printk call) 2010-05-10 10:23:15 +02:00
airo.c
airo.h
at76c50x-usb.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
at76c50x-usb.h
atmel_cs.c pcmcia: dev_node removal (write-only drivers) 2010-05-10 10:23:14 +02:00
atmel_pci.c
atmel.c net: trans_start cleanups 2010-05-10 05:01:31 -07:00
atmel.h
Kconfig wireless: depends on NET 2010-05-10 14:56:49 -04:00
mac80211_hwsim.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-11 14:24:55 -04:00
Makefile
mwl8k.c mwl8k: use the dma state API instead of the pci equivalents 2010-06-02 16:02:53 -04:00
ray_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-05-20 21:04:44 -07:00
ray_cs.h pcmcia: dev_node removal (drivers with unregister_netdev check) 2010-05-10 10:23:16 +02:00
rayctl.h
rndis_wlan.c rndis_wlan: increase assocbuf size and validate association info offsets from driver 2010-06-02 16:13:20 -04:00
wl3501_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-05-20 21:04:44 -07:00
wl3501.h pcmcia: dev_node removal (drivers with unregister_netdev check) 2010-05-10 10:23:16 +02:00
zd1201.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
zd1201.h