diff mbox

Input: gpio_keys - fix a memory leak

Message ID 1309229181.5235.1.camel@phoenix (mailing list archive)
State Accepted
Commit 1638207910019368253fc4c4a930c49ce2e98432
Headers show

Commit Message

axel lin June 28, 2011, 2:46 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/input/keyboard/gpio_keys.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Dmitry Torokhov June 29, 2011, 8:25 a.m. UTC | #1
On Tue, Jun 28, 2011 at 10:46:21AM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied, thanks Axel.
diff mbox

Patch

diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
index 6d0e2f6..cc4bdec 100644
--- a/drivers/input/keyboard/gpio_keys.c
+++ b/drivers/input/keyboard/gpio_keys.c
@@ -569,6 +569,7 @@  static int __devexit gpio_keys_remove(struct platform_device *pdev)
 	}
 
 	input_unregister_device(input);
+	kfree(ddata);
 
 	return 0;
 }