summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-05-15 23:16:39 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-07-26 15:32:40 -0400
commit929ebd30e4f982a1d2817f70154e7441f5714118 (patch)
tree4ff2f64fb6d1e695ddc3c837b6b8c6eab64894e6 /mm
parent3289a8368c294726659588d044e354dd3bcf44b3 (diff)
drivers/net/wireless/wl12xx: 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: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions