Skip to content

Commit

Permalink
Input: gameport - fix memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
AdrianBunk authored and Dmitry Torokhov committed Mar 14, 2006
1 parent 9d92111 commit 642fde1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/gameport/gameport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 642fde1

Please sign in to comment.