WSL2-Linux-Kernel/drivers/hwmon
Jean Delvare 04a6217df2 hwmon: Fix a potential race condition on unload
Fix a potential race condition when some hardware monitoring platform
drivers are being unloaded. I believe that the driver data pointer
shouldn't be cleared before all the sysfs files are removed, otherwise
a sysfs callback might attempt to dereference a NULL pointer. I'm not
sure exactly what the driver core protects drivers against, so let's
play it safe.

While we're here, clear the driver data pointer when probe fails, so
as to not leave an invalid pointer behind us.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
2007-07-19 14:22:14 -04:00
..
ams drivers/hwmon: switch to using input_dev->dev.parent 2007-05-10 09:26:53 -07:00
Kconfig hwmon: Convert vt8231 to a platform driver 2007-07-19 14:22:14 -04:00
Makefile hwmon: New SMSC DME1737 driver 2007-07-19 14:22:11 -04:00
abituguru.c hwmon: Fix a potential race condition on unload 2007-07-19 14:22:14 -04:00
ad7418.c hwmon: New AD7416, AD7417 and AD7418 driver 2007-05-08 17:22:02 +02:00
adm1021.c hwmon: Fix unchecked return status, batch 3 2006-09-28 15:31:17 -07:00
adm1025.c hwmon: Fix unchecked return status, batch 3 2006-09-28 15:31:17 -07:00
adm1026.c hwmon: Drop unused mutexes in two drivers 2007-02-14 21:15:03 +01:00
adm1029.c hwmon: New driver for the Analog Devices ADM1029 2007-02-14 21:15:04 +01:00
adm1031.c hwmon: Fix unchecked return status, batch 3 2006-09-28 15:31:17 -07:00
adm9240.c adm9240: Update Grant Coady's email address 2006-10-18 13:03:08 -07:00
applesmc.c hwmon/applesmc: Handle name file creation error and deletion 2007-05-27 22:17:43 +02:00
asb100.c hwmon: Fix unchecked return status, batch 1 2006-09-28 15:31:17 -07:00
atxp1.c hwmon: Fix unchecked return status, batch 6 2006-09-28 15:31:19 -07:00
coretemp.c hwmon/coretemp: fix a broken error path 2007-06-24 08:59:10 -07:00
dme1737.c hwmon: New SMSC DME1737 driver 2007-07-19 14:22:11 -04:00
ds1621.c hwmon/ds1621: Create individual alarm files 2007-07-19 14:22:11 -04:00
f71805f.c hwmon: Fix a potential race condition on unload 2007-07-19 14:22:14 -04:00
fscher.c Fix unchecked return status, batch 5 2006-09-28 15:31:18 -07:00
fscpos.c Fix unchecked return status, batch 5 2006-09-28 15:31:18 -07:00
gl518sm.c Fix unchecked return status, batch 5 2006-09-28 15:31:18 -07:00
gl520sm.c Fix unchecked return status, batch 5 2006-09-28 15:31:18 -07:00
hdaps.c drivers/hwmon: switch to using input_dev->dev.parent 2007-05-10 09:26:53 -07:00
hwmon-vid.c hwmon-vid: Don't spam the logs when VRM version is missing 2007-05-27 22:17:43 +02:00
hwmon.c hwmon: Use subsys_initcall 2007-02-14 21:15:04 +01:00
it87.c hwmon/it87: Add IT8726F support 2007-07-19 14:22:13 -04:00
k8temp.c hwmon: Update Rudolf Marek's e-mail address 2006-12-12 18:18:30 +01:00
lm63.c hwmon: Fault files naming convention 2007-07-19 14:22:12 -04:00
lm70.c hwmon/lm70: Make lm70_remove a __devexit function 2007-02-14 21:15:04 +01:00
lm75.c hwmon/lm75: Use dynamic sysfs callbacks 2007-05-08 17:22:01 +02:00
lm75.h [PATCH] hwmon: move SENSORS_LIMIT to hwmon.h 2005-09-05 09:14:17 -07:00
lm77.c hwmon: Fix unchecked return status, batch 2 2006-09-28 15:31:17 -07:00
lm78.c hwmon/lm78: Use dynamic sysfs callbacks 2007-05-08 17:22:01 +02:00
lm80.c hwmon: Fix unchecked return status, batch 2 2006-09-28 15:31:17 -07:00
lm83.c hwmon: Fault files naming convention 2007-07-19 14:22:12 -04:00
lm85.c hwmon: Cleanup a bogus legacy comment 2007-02-14 21:15:03 +01:00
lm87.c hwmon: Only call vid_which_vrm() when needed 2007-05-08 17:21:59 +02:00
lm90.c hwmon: Fault files naming convention 2007-07-19 14:22:12 -04:00
lm92.c hwmon: Fix unchecked return status, batch 2 2006-09-28 15:31:17 -07:00
max1619.c hwmon: Fix unchecked return status, batch 6 2006-09-28 15:31:19 -07:00
max6650.c hwmon: New max6650 driver 2007-05-08 17:22:00 +02:00
pc87360.c hwmon/pc87360: Convert to a platform driver 2007-07-19 14:22:12 -04:00
pc87427.c hwmon: Fix a potential race condition on unload 2007-07-19 14:22:14 -04:00
sis5595.c hwmon/sis5595: Use PCI_REVISION_ID 2007-07-19 14:22:14 -04:00
smsc47b397.c hwmon/smsc47b397: Use dynamic sysfs callbacks 2007-05-08 17:22:03 +02:00
smsc47m1.c hwmon: Fix a potential race condition on unload 2007-07-19 14:22:14 -04:00
smsc47m192.c hwmon: Fault files naming convention 2007-07-19 14:22:12 -04:00
via686a.c hwmon/via686a: Use dynamic sysfs callbacks 2007-07-19 14:22:13 -04:00
vt1211.c hwmon: Request the I/O regions in platform drivers 2007-05-08 17:21:59 +02:00
vt8231.c hwmon: Fix a potential race condition on unload 2007-07-19 14:22:14 -04:00
w83l785ts.c w83l785ts: Fix unchecked return status 2006-09-28 15:31:18 -07:00
w83627ehf.c hwmon/w83627ehf: Don't redefine REGION_OFFSET 2007-04-24 08:23:08 -07:00
w83627hf.c hwmon: Fix a potential race condition on unload 2007-07-19 14:22:14 -04:00
w83781d.c hwmon/w83781d: Deprecate W83627HF support 2007-05-08 17:22:03 +02:00
w83791d.c w83791d: Fix unchecked return status 2006-10-18 13:03:08 -07:00
w83792d.c hwmon: Update Rudolf Marek's e-mail address 2006-12-12 18:18:30 +01:00
w83793.c hwmon/w83793: Hide invalid VID readings 2007-01-18 22:14:24 +01:00