diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-05-13 02:07:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-13 21:01:26 (GMT) |
commit | 57e6d784404f796a3b8d0124210d9608ea20e279 (patch) | |
tree | c2845ec6ab64affad6f9e70ca39a8b8b6b90e9fa /firmware | |
parent | c7cd6e92ddfb16f52651fdaefde7f639f4fa4f7c (diff) | |
download | linux-fsl-qoriq-57e6d784404f796a3b8d0124210d9608ea20e279.tar.xz |
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>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions