mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
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>
This commit is contained in:
parent
2260c419b5
commit
b83b14598f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user