All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] coccinelle: catchup on memory allocation functions
@ 2016-05-23 15:07 ` Yann Droneaud
  0 siblings, 0 replies; 20+ messages in thread
From: Yann Droneaud @ 2016-05-23 15:07 UTC (permalink / raw)
  To: Julia Lawall, Gilles Muller, Nicolas Palix, Michal Marek
  Cc: Tejun Heo, Greg Kroah-Hartman, cocci, linux-kernel,
	Yann Droneaud, Daniel Thompson, Eli Billauer, Geert Uytterhoeven,
	Himangi Saraogi, Joe Perches, Johannes Weiner, Manish Badarkhe,
	Pekka Enberg, Srinivas Pandruvada, Wolfram Sang

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

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-06-21 12:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-23 15:07 [PATCH v2 0/3] coccinelle: catchup on memory allocation functions Yann Droneaud
2016-05-23 15:07 ` [Cocci] " Yann Droneaud
2016-05-23 15:07 ` [PATCH v2 1/3] coccinelle: also catch kzfree() issues Yann Droneaud
2016-05-23 15:07   ` [Cocci] " Yann Droneaud
2016-05-23 15:18   ` Julia Lawall
2016-05-23 15:18     ` [Cocci] " Julia Lawall
2016-06-20 13:24     ` Michal Marek
2016-06-20 13:24       ` [Cocci] " Michal Marek
2016-06-20 20:21       ` Julia Lawall
2016-06-20 20:21         ` [Cocci] " Julia Lawall
2016-06-21  9:43         ` Michal Marek
2016-06-21  9:43           ` [Cocci] " Michal Marek
2016-06-21 11:14           ` Yann Droneaud
2016-06-21 11:14             ` [Cocci] " Yann Droneaud
2016-06-21 11:17             ` Julia Lawall
2016-06-21 11:17               ` [Cocci] " Julia Lawall
2016-05-23 15:07 ` [PATCH v2 2/3] coccinelle: recognize more devm_* memory allocation functions Yann Droneaud
2016-05-23 15:07   ` [Cocci] " Yann Droneaud
2016-05-23 15:07 ` [PATCH v2 3/3] coccinelle: catch krealloc() on devm_*() allocated memory Yann Droneaud
2016-05-23 15:07   ` [Cocci] " Yann Droneaud

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.