From: Christophe JAILLET Date: Tue, 11 Apr 2017 03:48:16 +0000 (-0700) Subject: Input: omap-keypad - fix error handling code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9bb9dc1359ef40a10153cd8c7106dd9d9e8aa1a3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: omap-keypad - fix error handling code 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c index ebc67ba41fe2..940d38b08e6b 100644 --- a/drivers/input/keyboard/omap4-keypad.c +++ b/drivers/input/keyboard/omap4-keypad.c @@ -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);