mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 13:23:35 -04:00
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:
committed by
Greg Kroah-Hartman
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user