Skip to content

Commit

Permalink
Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Apr 28, 2011
1 parent 60c8ba6 commit 5c9db64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/twl4030-pwrbutton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c9db64

Please sign in to comment.