mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
Merge branch 'for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux
Pull coccinelle updates from Julia Lawall: "These changes update some existing semantic patches with respect to some recent changes in the kernel. Specifically, the change to kvmalloc.cocci searches for kfree_sensitive rather than kzfree, and the change to use_after_iter.cocci adds list_entry_is_head as a valid use of a list iterator index variable after the end of the loop" * 'for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux: scripts: coccinelle: allow list_entry_is_head() to use pos coccinelle: api: rename kzfree to kfree_sensitive
This commit is contained in:
commit
4e1c754472
2 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,7 @@ position p : script:python() { relevant(p) };
|
||||||
} else {
|
} else {
|
||||||
... when != krealloc(E, ...)
|
... when != krealloc(E, ...)
|
||||||
when any
|
when any
|
||||||
* \(kfree\|kzfree\)(E)
|
* \(kfree\|kfree_sensitive\)(E)
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,8 @@ hlist_for_each_entry_safe(c,...) S
|
||||||
|
|
|
|
||||||
list_remove_head(x,c,...)
|
list_remove_head(x,c,...)
|
||||||
|
|
|
|
||||||
|
list_entry_is_head(c,...)
|
||||||
|
|
|
||||||
sizeof(<+...c...+>)
|
sizeof(<+...c...+>)
|
||||||
|
|
|
|
||||||
&c->member
|
&c->member
|
||||||
|
|
Loading…
Reference in a new issue