Skip to content

Commit

Permalink
Input: gpio_keys - fix a memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Jun 29, 2011
1 parent 58c2440 commit 1638207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ static int __devexit gpio_keys_remove(struct platform_device *pdev)
}

input_unregister_device(input);
kfree(ddata);

return 0;
}
Expand Down

0 comments on commit 1638207

Please sign in to comment.