From: ydroneaud@opteya.com (Yann Droneaud)
To: cocci@systeme.lip6.fr
Subject: [Cocci] [PATCH v2 0/3] coccinelle: catchup on memory allocation functions
Date: Mon, 23 May 2016 17:07:18 +0200 [thread overview]
Message-ID: <cover.1464013817.git.ydroneaud@opteya.com> (raw)
Hi,
Please find updated patches that remove coccicheck's
blindness regarding the following functions:
- kzfree()
- krealloc()
- __krealloc()
- devm_kmalloc()
- devm_kvasprintf()
- devm_kasprintf()
- devm_kmalloc_array()
- devm_kcalloc()
- devm_kstrdup()
- devm_kmemdup()
- devm_get_free_pages()
- free_pages()
- free_page()
Changes since v1 [1]:
- add kzfree() to ifnullfree.cocci
- added acked-by
(note: v1 was a single patch update to v0)
Changes since v0 [2]:
- don't use regular expression in kfree.cocci
[1] http://lkml.kernel.org/r/1456150168-24028-1-git-send-email-ydroneaud at opteya.com
[2] http://lkml.kernel.org/r/cover.1455638829.git.ydroneaud at opteya.com
Regards.
Yann Droneaud (3):
coccinelle: also catch kzfree() issues
coccinelle: recognize more devm_* memory allocation functions
coccinelle: catch krealloc() on devm_*() allocated memory
scripts/coccinelle/free/devm_free.cocci | 26 ++++++++++++++++++++++++++
scripts/coccinelle/free/ifnullfree.cocci | 4 +++-
scripts/coccinelle/free/kfree.cocci | 18 +++++++++++++++---
scripts/coccinelle/free/kfreeaddr.cocci | 6 +++++-
4 files changed, 49 insertions(+), 5 deletions(-)
--
2.7.4
next reply other threads:[~2016-05-23 15:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 15:07 Yann Droneaud [this message]
2016-05-23 15:07 ` [Cocci] [PATCH v2 1/3] coccinelle: also catch kzfree() issues Yann Droneaud
2016-05-23 15:18 ` Julia Lawall
2016-06-20 13:24 ` Michal Marek
2016-06-20 20:21 ` Julia Lawall
2016-06-21 9:43 ` Michal Marek
2016-06-21 11:14 ` Yann Droneaud
2016-06-21 11:17 ` Julia Lawall
2016-05-23 15:07 ` [Cocci] [PATCH v2 2/3] coccinelle: recognize more devm_* memory allocation functions Yann Droneaud
2016-05-23 15:07 ` [Cocci] [PATCH v2 3/3] coccinelle: catch krealloc() on devm_*() allocated memory Yann Droneaud
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=cover.1464013817.git.ydroneaud@opteya.com \
--to=ydroneaud@opteya.com \
--cc=cocci@systeme.lip6.fr \
/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