* [PATCH] Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure
@ 2011-04-28 3:57 Axel Lin
2011-04-28 6:26 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-04-28 3:57 UTC (permalink / raw)
To: linux-kernel
Cc: Peter De Schrijver, Felipe Balbi, Dmitry Torokhov, linux-input
In twl4030_pwrbutton_probe error path, free_irq() was using NULL rather than
the driver data as the data pointer so free_irq() wouldn't have matched.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/input/misc/twl4030-pwrbutton.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c
index f16972b..38e4b50 100644
--- a/drivers/input/misc/twl4030-pwrbutton.c
+++ b/drivers/input/misc/twl4030-pwrbutton.c
@@ -89,7 +89,7 @@ static int __init twl4030_pwrbutton_probe(struct platform_device *pdev)
return 0;
free_irq:
- free_irq(irq, NULL);
+ free_irq(irq, pwr);
free_input_dev:
input_free_device(pwr);
return err;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure
2011-04-28 3:57 [PATCH] Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure Axel Lin
@ 2011-04-28 6:26 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2011-04-28 6:26 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Peter De Schrijver, Felipe Balbi, linux-input
On Thu, Apr 28, 2011 at 11:57:21AM +0800, Axel Lin wrote:
> In twl4030_pwrbutton_probe error path, free_irq() was using NULL rather than
> the driver data as the data pointer so free_irq() wouldn't have matched.
Applied, thanks Axel.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-28 6:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-28 3:57 [PATCH] Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure Axel Lin
2011-04-28 6:26 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).