kernel-ark/drivers/i2c/chips
Jean Delvare 1d66c64c3c [PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers
The it87 and via686a hardware monitoring drivers each create a sysfs
file named "alarms" in R/W mode, while they should really create it in
read-only mode. Since we don't provide a store function for these files,
write attempts to these files will do something undefined (I guess) and
bad (I am sure). My own try resulted in a locked terminal (where I
attempted the write) and a 100% CPU load until next reboot.

As a side note, wouldn't it make sense to check, when creating sysfs
files, that readable files have a non-NULL show method, and writable
files have a non-NULL store method? I know drivers are not supposed to
do stupid things, but there is already a BUG_ON for several conditions
in sysfs_create_file, so maybe we could add two more?

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-04-18 21:16:59 -07:00
..
adm1021.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
adm1025.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
adm1026.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
adm1031.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
asb100.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ds1337.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ds1621.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
eeprom.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fscher.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fscpos.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gl518sm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gl520sm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
isp1301_omap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
it87.c [PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers 2005-04-18 21:16:59 -07:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm63.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm75.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm75.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm77.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm78.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm80.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm83.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm85.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm87.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm90.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lm92.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m41t00.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
max1619.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pc87360.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcf8574.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcf8591.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtc8564.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtc8564.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sis5595.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smsc47b397.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smsc47m1.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
via686a.c [PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers 2005-04-18 21:16:59 -07:00
w83l785ts.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
w83627hf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
w83781d.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00