linux/scripts/coccinelle/free
Yann Droneaud 6dd9379e8f coccinelle: also catch kzfree() issues
Since commit 3ef0e5ba46 ('slab: introduce kzfree()'),
kfree() is no more the only function to be considered:
kzfree() should be recognized too.

In particular, kzfree() must not be called on memory
allocated through devm_*() functions.

Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
2016-06-21 11:43:32 +02:00
..
clk_put.cocci coccinelle: semantic patch for missing clk_put 2012-02-25 00:07:11 +01:00
devm_free.cocci coccinelle: also catch kzfree() issues 2016-06-21 11:43:32 +02:00
ifnullfree.cocci coccinelle: also catch kzfree() issues 2016-06-21 11:43:32 +02:00
iounmap.cocci coccinelle: semantic patch for missing iounmap 2012-02-25 00:07:11 +01:00
kfree.cocci coccinelle: also catch kzfree() issues 2016-06-21 11:43:32 +02:00
kfreeaddr.cocci coccinelle: also catch kzfree() issues 2016-06-21 11:43:32 +02:00
pci_free_consistent.cocci scripts: Coccinelle script for pci_free_consistent() 2013-07-03 15:50:38 +02:00