coccinelle: kmalloc_obj: Include devm_kmalloc_obj conversion rules
Mirroring the kmalloc -> kmalloc_obj conversion rules, do the same for
devm_kmalloc. The device-managed allocators differ only by taking the
managing "struct device *" as a leading argument, so capture the leading
arguments in an "expression list" metavariable rather than repeating
every pattern.
Signed-off-by: Kees Cook <kees@kernel.org>
Cc: Julia Lawall <Julia.Lawall@inria.fr>
Cc: Nicolas Palix <nicolas.palix@imag.fr>
Cc: <cocci@inria.fr>
1 file changed