[PATCH] smatch_allocations: Add devm_kmemdup() to list
Christophe JAILLET <[email protected]> Mon, 15 Aug 2022 18:13:04 +0200
| Newsgroups | org.kernel.vger.smatch |
|---|---|
| Message-ID | <9547519715349c7696f9a346ce61dbe88ccb49d0.1660579973.git.christophe.jaillet@wanadoo.fr> |
Add devm_kmemdup() to list of memory allocator Signed-off-by: Christophe JAILLET <[email protected]> --- smatch_allocations.c | 1 + 1 file changed, 1 insertion(+) diff --git a/smatch_allocations.c b/smatch_allocations.c index a4b8f419b030..599f195a4c31 100644 --- a/smatch_allocations.c +++ b/smatch_allocations.c @@ -72,6 +72,7 @@ static struct alloc_fn_info kernel_alloc_funcs[] = { {"kvcalloc", "$0 * $1", .zeroed=true}, {"kmemdup", "$1"}, + {"devm_kmemdup", "$2"}, {"memdup_user", "$1"}, {"sock_kmalloc", "$1"}, -- 2.34.1