diff options
author | 2011-07-09 18:04:39 +0200 | |
---|---|---|
committer | 2011-11-17 01:46:46 -0800 | |
commit | fc9f899483435935c1cd7005df29681929d1c99b (patch) | |
tree | c7ad164cfcfc16e5fb155e0ea3d3039eb47f0def /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'mw-3.1-jul25' of git://oss.oracle.com/git/smushran/linux-2.6 into ocfs2-fixes (diff) | |
download | linux-dev-fc9f899483435935c1cd7005df29681929d1c99b.tar.xz linux-dev-fc9f899483435935c1cd7005df29681929d1c99b.zip |
fs/ocfs2/dlm/dlmlock.c: free kmem_cache_zalloc'd data using kmem_cache_free
Memory allocated using kmem_cache_zalloc should be freed using
kmem_cache_free, not kfree.
The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x,e,e1,e2;
@@
x = kmem_cache_zalloc(e1,e2)
... when != x = e
?-kfree(x)
+kmem_cache_free(e1,x)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions