Skip to content

Commit

Permalink
Input: omap-keypad - fix error handling code
Browse files Browse the repository at this point in the history
According to the previous error handling code, it is likely that 'goto
err_free_keymap' is expected here in order to avoid a memory leak in error
handling path.

Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
tititiou36 authored and dtor committed Apr 11, 2017
1 parent 81093c9 commit 9bb9dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/omap4-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static int omap4_keypad_probe(struct platform_device *pdev)
"omap4-keypad", keypad_data);
if (error) {
dev_err(&pdev->dev, "failed to register interrupt\n");
goto err_free_input;
goto err_free_keymap;
}

device_init_wakeup(&pdev->dev, true);
Expand Down

0 comments on commit 9bb9dc1

Please sign in to comment.