Skip to content
Commit 8887516f authored by Li Zhong's avatar Li Zhong Committed by Guenter Roeck
Browse files

hwmon: (adm9240) fix data race in adm9240_fan_read



In
adm9240_read()
  adm9240_fan_read()
    adm9240_write_fan_div(),

it assumes that the caller of adm9240_write_fan_div() must hold
data->update_lock. Otherwise, it may cause data races when data is
updated by other threads.

Signed-off-by: default avatarLi Zhong <floridsleeves@gmail.com>
Link: https://lore.kernel.org/r/20220924001751.1726369-1-floridsleeves@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent f9c0cf8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment