aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-04-10 23:48:16 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-04-10 23:51:49 -0400
commit9bb9dc1359ef40a10153cd8c7106dd9d9e8aa1a3 (patch)
tree458278924a8d857b4c77cd496899511046cda1b0
parent81093c9848a781b85163d06de92ef8f84528cf6a (diff)
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 <christophe.jaillet@wanadoo.fr> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/keyboard/omap4-keypad.c2
1 files changed, 1 insertions, 1 deletions
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)
358 "omap4-keypad", keypad_data); 358 "omap4-keypad", keypad_data);
359 if (error) { 359 if (error) {
360 dev_err(&pdev->dev, "failed to register interrupt\n"); 360 dev_err(&pdev->dev, "failed to register interrupt\n");
361 goto err_free_input; 361 goto err_free_keymap;
362 } 362 }
363 363
364 device_init_wakeup(&pdev->dev, true); 364 device_init_wakeup(&pdev->dev, true);