projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2260c41
)
Input: omap4-keypad - fix memory leak
author
Sudip Mukherjee
<
[email protected]
>
Mon, 28 Sep 2015 22:59:22 +0000
(15:59 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Mon, 28 Sep 2015 23:41:07 +0000
(16:41 -0700)
If omap4_keypad_parse_dt() fails we returned the error code but we
missed releasing keypad_data.
Signed-off-by: Sudip Mukherjee <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/keyboard/omap4-keypad.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/omap4-keypad.c
b/drivers/input/keyboard/omap4-keypad.c
index b052afec9a11f0d323eb735dee3d262eabf116a2..6639b2b8528aa6da9a518d3bd3dc0da3010f4a09 100644
(file)
--- a/
drivers/input/keyboard/omap4-keypad.c
+++ b/
drivers/input/keyboard/omap4-keypad.c
@@
-266,7
+266,7
@@
static int omap4_keypad_probe(struct platform_device *pdev)
error = omap4_keypad_parse_dt(&pdev->dev, keypad_data);
if (error)
-
return error
;
+
goto err_free_keypad
;
res = request_mem_region(res->start, resource_size(res), pdev->name);
if (!res) {