aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2010-02-02 22:31:36 +0000
committerJames Morris <[email protected]>2010-02-02 23:21:57 +0000
commitb8a1d37c5f981cdd2e83c9fd98198832324cd57a (patch)
treefe3a2c7309a9c2d5bef8e3ba053ddbb446a39969 /net/lapb/lapb_in.c
parentMerge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block (diff)
downloadkernel-b8a1d37c5f981cdd2e83c9fd98198832324cd57a.tar.gz
kernel-b8a1d37c5f981cdd2e83c9fd98198832324cd57a.zip
kernel/cred.c: use kmem_cache_free
Free memory allocated using kmem_cache_zalloc using kmem_cache_free rather than kfree. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression x,E,c; @@ x = \(kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\)(c,...) ... when != x = E when != &x ?-kfree(x) +kmem_cache_free(c,x) // </smpl> Signed-off-by: Julia Lawall <[email protected]> Acked-by: David Howells <[email protected]> Cc: James Morris <[email protected]> Cc: Steve Dickson <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions