coccinelle: api: rename kzfree to kfree_sensitive
authorWeizhao Ouyang <o451686892@gmail.com>
Thu, 5 Aug 2021 09:58:23 +0000 (17:58 +0800)
committerJulia Lawall <Julia.Lawall@inria.fr>
Thu, 5 Aug 2021 11:01:09 +0000 (13:01 +0200)
Commit 453431a54934 ("mm, treewide: rename kzfree() to
kfree_sensitive()") renamed kzfree() to kfree_sensitive(),
it should be applied to coccinelle.

Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Acked-by: Denis Efremov <efremov@linux.com>
scripts/coccinelle/api/kvmalloc.cocci

index c30dab7..5ddcb76 100644 (file)
@@ -79,7 +79,7 @@ position p : script:python() { relevant(p) };
   } else {
     ... when != krealloc(E, ...)
         when any
-*   \(kfree\|kzfree\)(E)
+*   \(kfree\|kfree_sensitive\)(E)
     ...
   }