]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: axp288_fuel_gauge: Take lock before updating the valid flag
authorHans de Goede <hdegoede@redhat.com>
Thu, 6 Jan 2022 11:06:07 +0000 (12:06 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 1 Feb 2022 13:29:34 +0000 (14:29 +0100)
commit21156063f42202e2ebaeea127d9b11d6e2596605
tree3d4825a7e9ab10cd836726e17897a9a2fb25c490
parent0bd3385c237dfb3c8fc50d79d3b95a7c2810b9d9
power: supply: axp288_fuel_gauge: Take lock before updating the valid flag

The valid flag is protected by the mutex, so code clearing it
should take the mutex before cleating the valid flag.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_fuel_gauge.c