public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] hp-wmi: fix double free
@ 2010-01-10  7:45 Dan Carpenter
  2010-01-10 10:38 ` Alan Jenkins
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2010-01-10  7:45 UTC (permalink / raw)
  To: linux-kernel

kfree(obj) was called earlier.

This was found by smatch and has only been compile tested.  :/

Signed-off-by: Dan Carpenter <error27@gmail.com>

--- orig/drivers/platform/x86/hp-wmi.c	2010-01-09 21:43:13.000000000 +0300
+++ devel/drivers/platform/x86/hp-wmi.c	2010-01-09 21:43:28.000000000 +0300
@@ -388,8 +388,6 @@ static void hp_wmi_notify(u32 value, voi
 	} else
 		printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n",
 			eventcode);
-
-	kfree(obj);
 }
 
 static int __init hp_wmi_input_setup(void)

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

end of thread, other threads:[~2010-01-10 10:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-10  7:45 [patch] hp-wmi: fix double free Dan Carpenter
2010-01-10 10:38 ` Alan Jenkins

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