OpenCloudOS-Kernel/drivers/staging/wlan-ng
Xenia Ragiadakou 57e6d78440 wlan-ng: replace calls to kmalloc and memcpy with kmemdup
This patch replaces calls to kmalloc that are followed
by memcpy with calls to kmemdup.
This patch was found using coccicheck with api/memdup.cocci,
with memdup.cocci script slightly altered in the following way:

@depends on patch@
expression from,to,size,flag;
position p != {r1.p,r2.p};
@@

-  to = \(kmalloc@p\|kzalloc@p\)(size,flag);
+  to = kmemdup(from,size,flag);
-  memcpy(to, from, size);

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-13 14:01:26 -07:00
..
Kconfig
Makefile
README
cfg80211.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2013-02-18 13:47:13 -05:00
hfa384x.h staging: wlan-ng: hfa384x.h: fix for error reported by smatch 2013-02-18 10:51:36 -08:00
hfa384x_usb.c staging: wlan-ng: hfa384x_usb.c: fixed a coding style issue 2012-11-02 11:30:19 -07:00
p80211conv.c staging:wlan-ng: cleanup p80211skb_free and p80211skb_rxmeta_detach 2012-09-10 15:42:51 -07:00
p80211conv.h
p80211hdr.h
p80211ioctl.h
p80211meta.h
p80211metadef.h
p80211metastruct.h
p80211mgmt.h
p80211msg.h
p80211netdev.c staging/wlan-ng: Fix 'Branch condition evaluates to a garbage value' in p80211netdev.c 2013-02-14 09:26:23 -08:00
p80211netdev.h staging:wlan-ng: make wlan_unsetup void 2012-09-13 20:22:24 -07:00
p80211req.c staging:wlan-ng: clean coding style problems in p80211req_mibset_mibget 2012-09-10 15:42:51 -07:00
p80211req.h
p80211types.h staging "wlan-ng" Fix typos. 2012-09-26 09:19:50 -07:00
p80211wep.c staging: wlan-ng: use %*phC to hexdump small buffers 2012-08-13 19:23:19 -07:00
prism2fw.c staging "wlan-ng" Fix typos. 2012-09-26 09:19:50 -07:00
prism2mgmt.c Merge 3.8-rc5 into staging-next 2013-01-25 21:25:02 -08:00
prism2mgmt.h
prism2mib.c
prism2sta.c wlan-ng: replace calls to kmalloc and memcpy with kmemdup 2013-05-13 14:01:26 -07:00
prism2usb.c staging: wlan-ng: prism2usb.c: fix printk(KERN_ERR... to dev_err(dev, ... 2013-03-26 16:13:20 -07:00

README

TODO:
	- checkpatch.pl cleanups
	- sparse warnings
	- move to use the in-kernel wireless stack

Please send any patches or complaints about this driver to Greg
Kroah-Hartman <greg@kroah.com> and don't bother the upstream wireless
kernel developers about it, they want nothing to do with it.