public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] rfkill_unregister() should always be followed by rfkill_destroy()
@ 2009-09-14 10:43 Corentin Chary
  2009-09-14 10:43 ` [PATCH 1/3] hp-wmi: fix rfkill memory leak on unload Corentin Chary
  2009-09-14 13:24 ` [PATCH 0/3] rfkill_unregister() should always be followed by rfkill_destroy() Henrique de Moraes Holschuh
  0 siblings, 2 replies; 16+ messages in thread
From: Corentin Chary @ 2009-09-14 10:43 UTC (permalink / raw)
  To: linux-acpi
  Cc: linux-kernel, Julia Lawall, Alan Jenkins, Johannes Berg,
	Corentin Chary

The semantic match that finds the first problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>

@r@
expression E;
position p;
@@

rfkill_unregister(E);@p
... when != rfkill_destroy(E)

@script:python@
p << r.p;
@@

print "rfkill_unregister without rfkill_destroy found: %s %s " % (p[0].file, p[0].line)
// </spml>

Corentin Chary (3):
  hp-wmi: fix rfkill memory leak on unload
  thinkpad_acpi: fix rfkill memory leak on unload
  dell-laptop: fix rfkill memory leak on unload

 drivers/platform/x86/dell-laptop.c   |   36 ++++++++++++++++++++++-----------
 drivers/platform/x86/hp-wmi.c        |    2 +-
 drivers/platform/x86/thinkpad_acpi.c |    1 +
 3 files changed, 26 insertions(+), 13 deletions(-)


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

end of thread, other threads:[~2009-09-19  5:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14 10:43 [PATCH 0/3] rfkill_unregister() should always be followed by rfkill_destroy() Corentin Chary
2009-09-14 10:43 ` [PATCH 1/3] hp-wmi: fix rfkill memory leak on unload Corentin Chary
2009-09-14 10:43   ` [PATCH 2/3] thinkpad_acpi: " Corentin Chary
2009-09-14 10:43     ` [PATCH 3/3] dell-laptop: " Corentin Chary
2009-09-14 10:46       ` Matthew Garrett
2009-09-14 11:02         ` Alan Jenkins
2009-09-14 12:01           ` Corentin Chary
2009-09-14 13:22     ` [PATCH 2/3] thinkpad_acpi: " Henrique de Moraes Holschuh
2009-09-19  5:10     ` Len Brown
2009-09-14 10:59   ` [PATCH 1/3] hp-wmi: " Matthew Garrett
2009-09-19  5:13     ` Len Brown
2009-09-14 13:24 ` [PATCH 0/3] rfkill_unregister() should always be followed by rfkill_destroy() Henrique de Moraes Holschuh
2009-09-14 14:57   ` Alan Jenkins
2009-09-14 17:07     ` Henrique de Moraes Holschuh
2009-09-14 17:10       ` Henrique de Moraes Holschuh
2009-09-14 17:47         ` Corentin Chary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox