]> git.itanic.dy.fi Git - linux-stable/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 12:55:32 +0000 (13:55 +0100)
commitc530f60e5a2e20b657c82f210780862c92bd10ae
tree2bd59c08a5ceb119fcc80975b841dc7ff2c429d5
parent0dd4881238bcc75e375a7ca15f25f6e087cf8f94
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: 0402e8ebb8b86 ("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