coccinelle: semantic patches related to devm_ functions (part 2)
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 27 Dec 2011 17:28:51 +0000 (18:28 +0100)
committerMichal Marek <mmarek@suse.cz>
Sat, 14 Jan 2012 21:40:04 +0000 (22:40 +0100)
commitfb3f8af4ff52faf9b31e6c4e8ca0b0b16332808c
tree41aa64830b16a74300c0d6dd5f1323b373c86655
parent22e0059af301ec163d563c3590d2277c2a557d4f
coccinelle: semantic patches related to devm_ functions (part 2)

devm_ functions allocate memory that is to remain allocated until the
device is detached.  This patch checks for freeing of such memory using
standard memory freeing functions.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/free/devm_free.cocci [new file with mode: 0644]