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
1 changed files with 0 additions and 1 deletions
|
@ -62,7 +62,6 @@ void speakup_remove_virtual_keyboard(void)
|
||||||
{
|
{
|
||||||
if (virt_keyboard != NULL) {
|
if (virt_keyboard != NULL) {
|
||||||
input_unregister_device(virt_keyboard);
|
input_unregister_device(virt_keyboard);
|
||||||
input_free_device(virt_keyboard);
|
|
||||||
virt_keyboard = NULL;
|
virt_keyboard = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue