projects/linux·commit 9eec0792

coccinelle: api: rename kzfree to kfree_sensitive

9eec0792 · Weizhao Ouyang <[email protected]> · 2021-08-05 17:58:23 +08:00

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 <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
Acked-by: Denis Efremov <[email protected]>
Commit
9eec0792024983276871baeb201609abb07dd35d
Parents
251a1524

Changes

1 files changed · +1 −1

FileStatusAddDelContent
scripts/coccinelle/api/kvmalloc.coccimodified+1−1View file

scripts/coccinelle/api/kvmalloc.cocci

View file
diff --git a/scripts/coccinelle/api/kvmalloc.cocci b/scripts/coccinelle/api/kvmalloc.cocci
index c30dab7..5ddcb76 100644
--- a/scripts/coccinelle/api/kvmalloc.cocci
+++ b/scripts/coccinelle/api/kvmalloc.cocci
@@ -79,7 +79,7 @@ position p : script:python() { relevant(p) };
} else {
... when != krealloc(E, ...)
when any
-* \(kfree\|kzfree\)(E)
+* \(kfree\|kfree_sensitive\)(E)
...
}