diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-06-28 21:23:30 (GMT) |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-06-29 07:22:47 (GMT) |
commit | 1638207910019368253fc4c4a930c49ce2e98432 (patch) | |
tree | e2930856c90189f1856cdae735851b26dc104b8d | |
parent | 58c244009ef6ca450f0d787828a7f2f27651db5b (diff) | |
download | linux-fsl-qoriq-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>
-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 320b59a..97bada4 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; } |