Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e871155e authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Sasha Levin
Browse files

Input: omap4-keypad - fix memory leak



[ Upstream commit d79bdc7f004404204a6ac07785f8d6717070ecdb ]

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>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent bbdc0806
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {