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)
commit30abb3d07929137bf72327560e1595508a692c4e
tree3d4825a7e9ab10cd836726e17897a9a2fb25c490
parent05972f53a12fe97ac2bb4d56dfed730e93040d89
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