kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] Staging: speakup: free after input_unregister_device()
@ 2010-11-12  5:08 Dan Carpenter
  2010-11-17 19:42 ` William Hubbs
  2010-11-17 19:51 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2010-11-12  5:08 UTC (permalink / raw)
  To: kernel-janitors

input_unregister_device() frees the device so the call to
input_free_device() is a double free.

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

diff --git a/drivers/staging/speakup/fakekey.c b/drivers/staging/speakup/fakekey.c
index adb93f2..65b2311 100644
--- a/drivers/staging/speakup/fakekey.c
+++ b/drivers/staging/speakup/fakekey.c
@@ -62,7 +62,6 @@ void speakup_remove_virtual_keyboard(void)
 {
 	if (virt_keyboard != NULL) {
 		input_unregister_device(virt_keyboard);
-		input_free_device(virt_keyboard);
 		virt_keyboard = NULL;
 	}
 }

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

end of thread, other threads:[~2010-11-17 19:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-12  5:08 [patch] Staging: speakup: free after input_unregister_device() Dan Carpenter
2010-11-17 19:42 ` William Hubbs
2010-11-17 19:51 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).