]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cec1aa53706973d522cc4adcfabe3b7c935d527
tree41aa64830b16a74300c0d6dd5f1323b373c86655
parentb6add74d21ea27c85fcb841fa27b748987f37528
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]