projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94f8d28
)
Input: ibmasm - fix input initialization error path
author
Dmitry Torokhov
<dtor_core@ameritech.net>
Tue, 10 Jan 2006 07:00:39 +0000
(
02:00
-0500)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Tue, 10 Jan 2006 07:00:39 +0000
(
02:00
-0500)
Do not try to free device that has already been unregistered,
input_unregister_device() frees it automatically.
Spotted by Vernon Mauery <vernux@us.ibm.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/misc/ibmasm/remote.c
patch
|
blob
|
history
diff --git
a/drivers/misc/ibmasm/remote.c
b/drivers/misc/ibmasm/remote.c
index
1abd0c5
..
0f9e3aa
100644
(file)
--- a/
drivers/misc/ibmasm/remote.c
+++ b/
drivers/misc/ibmasm/remote.c
@@
-270,6
+270,7
@@
int ibmasm_init_remote_input_dev(struct service_processor *sp)
err_unregister_mouse_dev:
input_unregister_device(mouse_dev);
+ mouse_dev = NULL; /* so we don't try to free it again below */
err_free_devices:
input_free_device(mouse_dev);
input_free_device(keybd_dev);