dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Dan Carpenter 2010-11-12 08:08:35 +03:00 committed by Greg Kroah-Hartman
parent 2018845b6a
commit 5fb5d38fc2
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}
}