From: Axel Lin Date: Tue, 28 Jun 2011 21:23:30 +0000 (-0700) Subject: Input: gpio_keys - fix a memory leak X-Git-Tag: next-20110726~32^2~36 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1638207910019368253fc4c4a930c49ce2e98432;p=karo-tx-linux.git Input: gpio_keys - fix a memory leak Signed-off-by: Axel Lin Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 320b59ab8902..97bada4b680d 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; }