projects
/
linux.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
|
history
diff --git
a/drivers/input/serio/serio.c
b/drivers/input/serio/serio.c
index
9666007
..
6521034
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;
}