OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e86eb2
)
Input: ams_delta_serio - fix wrong kfree in ams_delta_serio_exit
author
Axel Lin
<axel.lin@gmail.com>
Mon, 22 Nov 2010 06:27:09 +0000
(22:27 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 22 Nov 2010 06:32:13 +0000
(22:32 -0800)
serio_unregister_port() will call put_device() to free the memory.
Thus remove kfree(ams_delta_serio) after
serio_unregister_port(ams_delta_serio).
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/ams_delta_serio.c
patch
|
blob
|
history
diff --git
a/drivers/input/serio/ams_delta_serio.c
b/drivers/input/serio/ams_delta_serio.c
index
8f1770e
..
ebe9553
100644
(file)
--- a/
drivers/input/serio/ams_delta_serio.c
+++ b/
drivers/input/serio/ams_delta_serio.c
@@
-172,6
+172,5
@@
static void __exit ams_delta_serio_exit(void)
free_irq(OMAP_GPIO_IRQ(AMS_DELTA_GPIO_PIN_KEYBRD_CLK), 0);
gpio_free(AMS_DELTA_GPIO_PIN_KEYBRD_CLK);
gpio_free(AMS_DELTA_GPIO_PIN_KEYBRD_DATA);
- kfree(ams_delta_serio);
}
module_exit(ams_delta_serio_exit);