projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4872f78
)
Input: serio - fix memory leak
author
Adrian Bunk
<bunk@stusta.de>
Tue, 14 Mar 2006 05:13:29 +0000
(
00:13
-0500)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Tue, 14 Mar 2006 05:13:29 +0000
(
00:13
-0500)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/serio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/serio/serio.c
b/drivers/input/serio/serio.c
index 966600779b7009f6d97ae06f87bc1981092f29fc..6521034bc93328289819d92894fd2388401cecbb 100644
(file)
--- a/
drivers/input/serio/serio.c
+++ b/
drivers/input/serio/serio.c
@@
-196,6
+196,7
@@
static void serio_queue_event(void *object, struct module *owner,
if ((event = kmalloc(sizeof(struct serio_event), GFP_ATOMIC))) {
if (!try_module_get(owner)) {
printk(KERN_WARNING "serio: Can't get module reference, dropping event %d\n", event_type);
+ kfree(event);
goto out;
}