aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/speakup/fakekey.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-11-12 08:08:35 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-16 12:25:52 -0800
commit5fb5d38fc268b8285125b213b9b2ded9322a371c (patch)
tree4c0199b6e9d88e7abca1a546562b4c3bd3b0d47f /drivers/staging/speakup/fakekey.c
parent2018845b6a169f75341f8e68ad1089cb6697cf24 (diff)
downloadlinux-5fb5d38fc268b8285125b213b9b2ded9322a371c.tar.gz
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>
Diffstat (limited to 'drivers/staging/speakup/fakekey.c')
-rw-r--r--drivers/staging/speakup/fakekey.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/speakup/fakekey.c b/drivers/staging/speakup/fakekey.c
index adb93f21c0d..65b231178f0 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;
}
}