Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1620877 > unrolled thread

Re: [PATCH] Input: omap-keypad - fix error handling code

Started byDmitry Torokhov <dmitry.torokhov@gmail.com>
First post2017-04-11 05:50 +0200
Last post2017-04-11 05:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] Input: omap-keypad - fix error handling code Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-04-11 05:50 +0200

#1620877 — Re: [PATCH] Input: omap-keypad - fix error handling code

FromDmitry Torokhov <dmitry.torokhov@gmail.com>
Date2017-04-11 05:50 +0200
SubjectRe: [PATCH] Input: omap-keypad - fix error handling code
Message-ID<tuUYy-1CP-7@gated-at.bofh.it>
On Sat, Apr 08, 2017 at 07:18:58PM +0200, Christophe JAILLET wrote:
> 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>

Applied, thank you.

> ---
>  drivers/input/keyboard/omap4-keypad.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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);
> -- 
> 2.11.0
> 

-- 
Dmitry

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web