]> 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 12:54:52 +0000 (13:54 +0100)
commite52391c3530288596fd507fcf4e54de347f3f9f3
treec31b4e6bf7f5c167429dfd5640d7eda8779a2f07
parent076481e5ee775531ba4d356dae9049286d7318dd
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