mirror-linux/drivers/hwmon/occ
Eddie James ac6888ac5a hwmon: (occ) Lock mutex in shutdown to prevent race with occ_active
Unbinding the driver or removing the parent device at the same time
as using the OCC active sysfs file can cause the driver to unregister
the hwmon device twice. Prevent this by locking the occ mutex in the
shutdown function.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220606185455.21126-1-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2022-06-07 05:45:42 -07:00
..
Kconfig
Makefile
common.c hwmon: (occ) Lock mutex in shutdown to prevent race with occ_active 2022-06-07 05:45:42 -07:00
common.h hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00
p8_i2c.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00
p9_sbe.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00
sysfs.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00