]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: rt9467: Return error on failure in rt9467_set_value_from_ranges()
authorIvan Abramov <i.abramov@mt-integration.ru>
Thu, 9 Oct 2025 14:47:24 +0000 (17:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:47 +0000 (14:02 +0100)
commit52d3f2076122ad2d0ea11b32e3f45ae05df4180e
treedbb8fc9e2ba75f33bb9b28436d2cd51823a87b29
parent1cea1ca5e8d4a6e03eda1bb2747c850103a8cd57
power: supply: rt9467: Return error on failure in rt9467_set_value_from_ranges()

[ Upstream commit 8b27fe2d8d2380118c343629175385ff587e2fe4 ]

The return value of rt9467_set_value_from_ranges() when setting AICL VTH is
not checked, even though it may fail.

Log error and return from rt9467_run_aicl() on fail.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 6f7f70e3a8dd ("power: supply: rt9467: Add Richtek RT9467 charger driver")
Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
Link: https://patch.msgid.link/20251009144725.562278-1-i.abramov@mt-integration.ru
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/rt9467-charger.c