diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-12 08:08:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 23:25:52 +0300 |
commit | 5fb5d38fc268b8285125b213b9b2ded9322a371c (patch) | |
tree | 4c0199b6e9d88e7abca1a546562b4c3bd3b0d47f /drivers/staging | |
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>
Diffstat (limited to 'drivers/staging')
-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 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; } } |