[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1464013817.git.ydroneaud@opteya.com>
Date: Mon, 23 May 2016 17:07:18 +0200
From: Yann Droneaud <ydroneaud@...eya.com>
To: Julia Lawall <Julia.Lawall@...6.fr>,
Gilles Muller <Gilles.Muller@...6.fr>,
Nicolas Palix <nicolas.palix@...g.fr>,
Michal Marek <mmarek@...e.com>
Cc: Tejun Heo <tj@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
cocci@...teme.lip6.fr, linux-kernel@...r.kernel.org,
Yann Droneaud <ydroneaud@...eya.com>,
Daniel Thompson <daniel.thompson@...aro.org>,
Eli Billauer <eli.billauer@...il.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Himangi Saraogi <himangi774@...il.com>,
Joe Perches <joe@...ches.com>,
Johannes Weiner <hannes@...xchg.org>,
Manish Badarkhe <badarkhe.manish@...il.com>,
Pekka Enberg <penberg@...helsinki.fi>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Wolfram Sang <w.sang@...gutronix.de>
Subject: [PATCH v2 0/3] coccinelle: catchup on memory allocation functions
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@opteya.com
[2] http://lkml.kernel.org/r/cover.1455638829.git.ydroneaud@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
Powered by blists - more mailing lists