diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-06-28 14:23:30 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-06-29 00:22:47 -0700 |
commit | 1638207910019368253fc4c4a930c49ce2e98432 (patch) | |
tree | e2930856c90189f1856cdae735851b26dc104b8d /drivers/input/keyboard | |
parent | 58c244009ef6ca450f0d787828a7f2f27651db5b (diff) | |
download | linux-1638207910019368253fc4c4a930c49ce2e98432.tar.gz linux-1638207910019368253fc4c4a930c49ce2e98432.tar.bz2 linux-1638207910019368253fc4c4a930c49ce2e98432.zip |
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/keyboard')
-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; } |