kernel-ark/drivers
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
..
acorn
acpi
atm
base
block merge by hand (scsi_device.h) 2005-04-18 13:45:00 -05:00
bluetooth
cdrom
char [PATCH] update maintainer for /dev/random 2005-04-16 15:25:56 -07:00
cpufreq
crypto
dio
eisa
fc4
firmware
i2c [PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers 2005-04-18 21:16:59 -07:00
ide [PATCH] hd: eliminate bad section references 2005-04-16 15:25:52 -07:00
ieee1394
infiniband [PATCH] drivers/infiniband/hw/mthca/mthca_main.c: remove an unused label 2005-04-16 15:26:35 -07:00
input
isdn
macintosh
mca
md [PATCH] md: remove a number of misleading calls to MD_BUG 2005-04-16 15:26:42 -07:00
media
message [PATCH] Convert i2o to compat_ioctl 2005-04-18 12:34:15 -05:00
misc
mmc
mtd
net
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
s390 merge by hand (scsi_device.h) 2005-04-18 13:45:00 -05:00
sbus
scsi aic7xxx: convert to SPI transport class Domain Validation 2005-04-18 13:52:27 -05:00
serial [PATCH] serial: fix comments in 8250.c 2005-04-16 15:26:39 -07:00
sh
sn
tc
telephony
usb [PATCH] kill old EH constants 2005-04-18 12:33:41 -05:00
video
w1 [PATCH] w1_smem: w1 ID is only 8 bytes long. 2005-04-18 21:16:57 -07:00
zorro
Kconfig
Makefile