04a6217df2
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> |
||
---|---|---|
.. | ||
ams | ||
abituguru.c | ||
ad7418.c | ||
adm1021.c | ||
adm1025.c | ||
adm1026.c | ||
adm1029.c | ||
adm1031.c | ||
adm9240.c | ||
applesmc.c | ||
asb100.c | ||
atxp1.c | ||
coretemp.c | ||
dme1737.c | ||
ds1621.c | ||
f71805f.c | ||
fscher.c | ||
fscpos.c | ||
gl518sm.c | ||
gl520sm.c | ||
hdaps.c | ||
hwmon-vid.c | ||
hwmon.c | ||
it87.c | ||
k8temp.c | ||
Kconfig | ||
lm63.c | ||
lm70.c | ||
lm75.c | ||
lm75.h | ||
lm77.c | ||
lm78.c | ||
lm80.c | ||
lm83.c | ||
lm85.c | ||
lm87.c | ||
lm90.c | ||
lm92.c | ||
Makefile | ||
max1619.c | ||
max6650.c | ||
pc87360.c | ||
pc87427.c | ||
sis5595.c | ||
smsc47b397.c | ||
smsc47m1.c | ||
smsc47m192.c | ||
via686a.c | ||
vt1211.c | ||
vt8231.c | ||
w83l785ts.c | ||
w83627ehf.c | ||
w83627hf.c | ||
w83781d.c | ||
w83791d.c | ||
w83792d.c | ||
w83793.c |