Commit 1096809f authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Jiri Slaby

Input: omap4-keypad - fix memory leak

commit d79bdc7f upstream.

If omap4_keypad_parse_dt() fails we returned the error code but we
missed releasing keypad_data.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 0894eb8d
......@@ -284,7 +284,7 @@ static int omap4_keypad_probe(struct platform_device *pdev)
} else {
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment