diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-06-29 01:23:30 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-06-29 11:22:47 +0400 |
commit | 1638207910019368253fc4c4a930c49ce2e98432 (patch) | |
tree | e2930856c90189f1856cdae735851b26dc104b8d /drivers/input | |
parent | 58c244009ef6ca450f0d787828a7f2f27651db5b (diff) | |
download | linux-1638207910019368253fc4c4a930c49ce2e98432.tar.xz |
Input: gpio_keys - fix a memory leak
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/gpio_keys.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |