]> 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)
commit05c8074db97b46d3b77388f626fca8015abe34e5
tree3d4825a7e9ab10cd836726e17897a9a2fb25c490
parent67d3a1e20a341a7e5c2d9aefae274886dd8ccd8d
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