summaryrefslogtreecommitdiff
path: root/crypto/aead.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-05-15 21:21:43 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-17 23:31:15 (GMT)
commit94002c07ff0e207a883519ccc35c0b5390b29331 (patch)
treeb730a75ef2ad76d1e3a322e5982b30ca46b6c487 /crypto/aead.c
parent96fe9ee2c2dfe3268961f3873ea6098b9b9f27c2 (diff)
downloadlinux-94002c07ff0e207a883519ccc35c0b5390b29331.tar.xz
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>
Diffstat (limited to 'crypto/aead.c')
0 files changed, 0 insertions, 0 deletions