]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: mt6360: add a check of devm_work_autocancel in mt6360_charger_probe
authorKang Chen <void0red@gmail.com>
Mon, 27 Feb 2023 03:14:10 +0000 (11:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:03:21 +0000 (14:03 +0100)
commit38eafef7bd988d08bde47067075e719ddd4dd77d
tree32cb81ce7d6f9232801b7c8cb9762d0636ce1eea
parentc87116d0163e66df4365b398c6e1dfb11af4e74b
power: supply: mt6360: add a check of devm_work_autocancel in mt6360_charger_probe

commit 4cbb0d358883a27e432714b5256f0362946f5e25 upstream.

devm_work_autocancel may fail, add a check and return early.

Fixes: 14ff12c591ab4 ("power: supply: mt6360_charger: add MT6360 charger support")
Signed-off-by: Kang Chen <void0red@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/mt6360_charger.c