Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: pmic8xxx-pwrkey - pass correct device identity to free_irq()

free_irq() in the error handling case is missing when change
pass input device directly to interrupt.

Fixes: b27f8fee4965('Input: pmic8xxx-pwrkey - pass input device directly to interrupt')

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Wei Yongjun and committed by
Dmitry Torokhov
e77a715a ee65d4b3

+1 -1
+1 -1
drivers/input/misc/pmic8xxx-pwrkey.c
··· 182 182 return 0; 183 183 184 184 free_press_irq: 185 - free_irq(key_press_irq, pwrkey); 185 + free_irq(key_press_irq, pwr); 186 186 unreg_input_dev: 187 187 input_unregister_device(pwr); 188 188 pwr = NULL;