* [PATCH] keyboard: tnetv107x: fix input_device leak
@ 2010-09-26 8:59 Vasiliy Kulikov
2010-09-27 5:37 ` Datta, Shubhrajyoti
0 siblings, 1 reply; 2+ messages in thread
From: Vasiliy Kulikov @ 2010-09-26 8:59 UTC (permalink / raw)
To: kernel-janitors
Cc: Dmitry Torokhov, Cyril Chemparathy, Kevin Hilman, linux-input,
linux-kernel
keypad_probe() calls input_free_device() on error, but keypad_remove()
doesn't.
---
Compile tested.
drivers/input/keyboard/tnetv107x-keypad.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/input/keyboard/tnetv107x-keypad.c b/drivers/input/keyboard/tnetv107x-keypad.c
index b4a81eb..1ea20e1 100644
--- a/drivers/input/keyboard/tnetv107x-keypad.c
+++ b/drivers/input/keyboard/tnetv107x-keypad.c
@@ -305,6 +305,7 @@ static int __devexit keypad_remove(struct platform_device *pdev)
free_irq(kp->irq_press, kp);
free_irq(kp->irq_release, kp);
input_unregister_device(kp->input_dev);
+ input_free_device(kp->input_dev);
clk_put(kp->clk);
iounmap(kp->regs);
release_mem_region(kp->res->start, resource_size(kp->res));
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] keyboard: tnetv107x: fix input_device leak
2010-09-26 8:59 [PATCH] keyboard: tnetv107x: fix input_device leak Vasiliy Kulikov
@ 2010-09-27 5:37 ` Datta, Shubhrajyoti
0 siblings, 0 replies; 2+ messages in thread
From: Datta, Shubhrajyoti @ 2010-09-27 5:37 UTC (permalink / raw)
To: Vasiliy Kulikov, kernel-janitors@vger.kernel.org
Cc: Dmitry Torokhov, Chemparathy, Cyril, Kevin Hilman,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
> -----Original Message-----
> From: linux-input-owner@vger.kernel.org [mailto:linux-input-
> owner@vger.kernel.org] On Behalf Of Vasiliy Kulikov
> Sent: Sunday, September 26, 2010 2:30 PM
> To: kernel-janitors@vger.kernel.org
> Cc: Dmitry Torokhov; Chemparathy, Cyril; Kevin Hilman; linux-
> input@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: [PATCH] keyboard: tnetv107x: fix input_device leak
>
> keypad_probe() calls input_free_device() on error, but keypad_remove()
> doesn't.
> ---
> Compile tested.
>
> drivers/input/keyboard/tnetv107x-keypad.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/input/keyboard/tnetv107x-keypad.c
> b/drivers/input/keyboard/tnetv107x-keypad.c
> index b4a81eb..1ea20e1 100644
> --- a/drivers/input/keyboard/tnetv107x-keypad.c
> +++ b/drivers/input/keyboard/tnetv107x-keypad.c
> @@ -305,6 +305,7 @@ static int __devexit keypad_remove(struct
> platform_device *pdev)
> free_irq(kp->irq_press, kp);
> free_irq(kp->irq_release, kp);
> input_unregister_device(kp->input_dev);
> + input_free_device(kp->input_dev);
It does not seem to be correct.
> clk_put(kp->clk);
> iounmap(kp->regs);
> release_mem_region(kp->res->start, resource_size(kp->res));
> --
> 1.7.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-input" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-27 5:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-26 8:59 [PATCH] keyboard: tnetv107x: fix input_device leak Vasiliy Kulikov
2010-09-27 5:37 ` Datta, Shubhrajyoti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox