Powered by Linux
[PATCH] smatch_allocations: Add devm_kmemdup() to list — Semantic Matching Tool

[PATCH] smatch_allocations: Add devm_kmemdup() to list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add devm_kmemdup() to list of memory allocator

Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux