All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] [PATCH 0/3] coccinelle: catchup on memory allocation functions
@ 2016-02-16 17:01 ` Yann Droneaud
  0 siblings, 0 replies; 26+ messages in thread
From: Yann Droneaud @ 2016-02-16 17:01 UTC (permalink / raw)
  To: cocci

Hi,

Please find few 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()

I've ran coccicheck on drivers/staging and found no new issue,
which is great, but that questions those patches' usefulness,
YMMV.

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/kfree.cocci     |  3 +++
 scripts/coccinelle/free/kfreeaddr.cocci |  6 +++++-
 3 files changed, 34 insertions(+), 1 deletion(-)

-- 
2.5.0

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

end of thread, other threads:[~2016-02-22 15:24 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16 17:01 [Cocci] [PATCH 0/3] coccinelle: catchup on memory allocation functions Yann Droneaud
2016-02-16 17:01 ` Yann Droneaud
2016-02-16 17:06 ` [Cocci] [PATCH 1/3] coccinelle: also catch kzfree() issues Yann Droneaud
2016-02-16 17:06   ` Yann Droneaud
2016-02-16 17:16   ` [Cocci] " Julia Lawall
2016-02-16 17:16     ` Julia Lawall
2016-02-16 20:02     ` [Cocci] " SF Markus Elfring
2016-02-16 20:02       ` SF Markus Elfring
2016-02-16 20:17       ` [Cocci] " Julia Lawall
2016-02-16 20:17         ` Julia Lawall
2016-02-16 20:22         ` [Cocci] " SF Markus Elfring
2016-02-16 20:22           ` SF Markus Elfring
2016-02-22 14:09     ` [Cocci] [PATCHv1 1/3] " Yann Droneaud
2016-02-22 14:09       ` Yann Droneaud
2016-02-22 14:20       ` [Cocci] " Julia Lawall
2016-02-22 14:20         ` Julia Lawall
2016-02-22 15:24         ` [Cocci] " Yann Droneaud
2016-02-22 15:24           ` Yann Droneaud
2016-02-16 17:06 ` [Cocci] [PATCH 2/3] coccinelle: recognize more devm_* memory allocation functions Yann Droneaud
2016-02-16 17:06   ` Yann Droneaud
2016-02-16 17:18   ` [Cocci] " Julia Lawall
2016-02-16 17:18     ` Julia Lawall
2016-02-16 17:06 ` [Cocci] [PATCH 3/3] coccinelle: catch krealloc() on devm_*() allocated memory Yann Droneaud
2016-02-16 17:06   ` Yann Droneaud
2016-02-16 17:19   ` [Cocci] " Julia Lawall
2016-02-16 17:19     ` Julia Lawall

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.