lkml.org 
[lkml]   [2009]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] rfkill_unregister() should always be followed by rfkill_destroy()
Date
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(-)



\
 
 \ /
  Last update: 2009-09-14 12:53    [W:0.090 / U:0.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site