Преглед изворни кода

Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure

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>
Axel Lin пре 14 година
родитељ
комит
5c9db64888
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/input/misc/twl4030-pwrbutton.c

+ 1 - 1
drivers/input/misc/twl4030-pwrbutton.c

@@ -89,7 +89,7 @@ static int __init twl4030_pwrbutton_probe(struct platform_device *pdev)
 	return 0;
 	return 0;
 
 
 free_irq:
 free_irq:
-	free_irq(irq, NULL);
+	free_irq(irq, pwr);
 free_input_dev:
 free_input_dev:
 	input_free_device(pwr);
 	input_free_device(pwr);
 	return err;
 	return err;