kernel-hacking-2024-linux-s.../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
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
adm1025.c
adm1026.c
adm1029.c
adm1031.c
adm9240.c
applesmc.c hwmon/applesmc: Handle name file creation error and deletion 2007-05-27 22:17:43 +02:00
asb100.c
atxp1.c
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
fscpos.c
gl518sm.c
gl520sm.c
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
it87.c hwmon/it87: Add IT8726F support 2007-07-19 14:22:13 -04:00
k8temp.c
Kconfig hwmon: Convert vt8231 to a platform driver 2007-07-19 14:22:14 -04:00
lm63.c hwmon: Fault files naming convention 2007-07-19 14:22:12 -04:00
lm70.c
lm75.c hwmon/lm75: Use dynamic sysfs callbacks 2007-05-08 17:22:01 +02:00
lm75.h
lm77.c
lm78.c hwmon/lm78: Use dynamic sysfs callbacks 2007-05-08 17:22:01 +02:00
lm80.c
lm83.c hwmon: Fault files naming convention 2007-07-19 14:22:12 -04:00
lm85.c
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
Makefile hwmon: New SMSC DME1737 driver 2007-07-19 14:22:11 -04:00
max1619.c
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
w83627ehf.c
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
w83792d.c
w83793.c