mirror of https://gitee.com/openkylin/linux.git
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:
parent
2018845b6a
commit
5fb5d38fc2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue