diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-03-14 00:13:29 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-03-14 00:13:29 -0500 |
commit | 9d921116cc5e27c1950b7e7508fdefec04a69963 (patch) | |
tree | b7898d86357cb4fc6a5e44bbc93b8ebe52ffe631 /drivers/input/serio | |
parent | 4872f7888855fa52182f3d69de1ff3746fd43c07 (diff) |
Input: serio - fix memory leak
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/serio')
-rw-r--r-- | drivers/input/serio/serio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 966600779b70..6521034bc933 100644 --- 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, | |||
196 | if ((event = kmalloc(sizeof(struct serio_event), GFP_ATOMIC))) { | 196 | if ((event = kmalloc(sizeof(struct serio_event), GFP_ATOMIC))) { |
197 | if (!try_module_get(owner)) { | 197 | if (!try_module_get(owner)) { |
198 | printk(KERN_WARNING "serio: Can't get module reference, dropping event %d\n", event_type); | 198 | printk(KERN_WARNING "serio: Can't get module reference, dropping event %d\n", event_type); |
199 | kfree(event); | ||
199 | goto out; | 200 | goto out; |
200 | } | 201 | } |
201 | 202 | ||