From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: smatch@vger.kernel.org
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Subject: [PATCH] smatch_allocations: Add devm_kmemdup() to list
Date: Mon, 15 Aug 2022 18:13:04 +0200 [thread overview]
Message-ID: <9547519715349c7696f9a346ce61dbe88ccb49d0.1660579973.git.christophe.jaillet@wanadoo.fr> (raw)
Add devm_kmemdup() to list of memory allocator
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
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
reply other threads:[~2022-08-15 16:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9547519715349c7696f9a346ce61dbe88ccb49d0.1660579973.git.christophe.jaillet@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=smatch@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).