Skip to content

Commit

Permalink
Staging: speakup: free after input_unregister_device()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Nov 16, 2010
1 parent 2018845 commit 5fb5d38
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/speakup/fakekey.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5fb5d38

Please sign in to comment.