diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-12 05:08:35 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 20:25:52 (GMT) |
commit | 5fb5d38fc268b8285125b213b9b2ded9322a371c (patch) | |
tree | 4c0199b6e9d88e7abca1a546562b4c3bd3b0d47f | |
parent | 2018845b6a169f75341f8e68ad1089cb6697cf24 (diff) | |
download | linux-5fb5d38fc268b8285125b213b9b2ded9322a371c.tar.xz |
Staging: speakup: free after input_unregister_device()
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/speakup/fakekey.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } } |