Commit 5fb5d38f authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2018845b
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment