summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/gpio_keys.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-06-28 14:23:30 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-06-29 00:22:47 -0700
commit1638207910019368253fc4c4a930c49ce2e98432 (patch)
treee2930856c90189f1856cdae735851b26dc104b8d /drivers/input/keyboard/gpio_keys.c
parent58c244009ef6ca450f0d787828a7f2f27651db5b (diff)
downloadblackbird-op-linux-1638207910019368253fc4c4a930c49ce2e98432.tar.gz
blackbird-op-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/gpio_keys.c')
-rw-r--r--drivers/input/keyboard/gpio_keys.c1
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;
}
OpenPOWER on IntegriCloud