summaryrefslogtreecommitdiff
path: root/drivers/staging
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 23:25:52 +0300
commit5fb5d38fc268b8285125b213b9b2ded9322a371c (patch)
tree4c0199b6e9d88e7abca1a546562b4c3bd3b0d47f /drivers/staging
parent2018845b6a169f75341f8e68ad1089cb6697cf24 (diff)
downloadlinux-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>
Diffstat (limited to 'drivers/staging')
-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 adb93f21c0d6..65b231178f05 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;
}
}