projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2018845
)
Staging: speakup: free after input_unregister_device()
author
Dan Carpenter
<error27@gmail.com>
Fri, 12 Nov 2010 05:08:35 +0000
(08:08 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Nov 2010 20:25:52 +0000
(12:25 -0800)
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>
drivers/staging/speakup/fakekey.c
patch
|
blob
|
history
diff --git
a/drivers/staging/speakup/fakekey.c
b/drivers/staging/speakup/fakekey.c
index
adb93f2
..
65b2311
100644
(file)
--- a/
drivers/staging/speakup/fakekey.c
+++ b/
drivers/staging/speakup/fakekey.c
@@
-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;
}
}