提交 642fde17 编写于 作者: A Adrian Bunk 提交者: Dmitry Torokhov

Input: gameport - fix memory leak

Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 9d921116
......@@ -266,6 +266,7 @@ static void gameport_queue_event(void *object, struct module *owner,
if ((event = kmalloc(sizeof(struct gameport_event), GFP_ATOMIC))) {
if (!try_module_get(owner)) {
printk(KERN_WARNING "gameport: Can't get module reference, dropping event %d\n", event_type);
kfree(event);
goto out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册