1
0
Fork 0

Input: omap4-keypad - fix memory leak

If omap4_keypad_parse_dt() fails we returned the error code but we
missed releasing keypad_data.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
hifive-unleashed-5.1
Sudip Mukherjee 2015-09-28 15:59:22 -07:00 committed by Dmitry Torokhov
parent 1a5e251996
commit d79bdc7f00
1 changed files with 1 additions and 1 deletions

View File

@ -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) {