diff mbox

keyboard: tnetv107x: fix input_device leak

Message ID 1285491584-32664-1-git-send-email-segooon@gmail.com (mailing list archive)
State Rejected
Headers show

Commit Message

Kulikov Vasiliy Sept. 26, 2010, 8:59 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/keyboard/tnetv107x-keypad.c b/drivers/input/keyboard/tnetv107x-keypad.c
index b4a81eb..1ea20e1 100644
--- a/drivers/input/keyboard/tnetv107x-keypad.c
+++ b/drivers/input/keyboard/tnetv107x-keypad.c
@@ -305,6 +305,7 @@  static int __devexit keypad_remove(struct platform_device *pdev)
 	free_irq(kp->irq_press, kp);
 	free_irq(kp->irq_release, kp);
 	input_unregister_device(kp->input_dev);
+	input_free_device(kp->input_dev);
 	clk_put(kp->clk);
 	iounmap(kp->regs);
 	release_mem_region(kp->res->start, resource_size(kp->res));