linux/drivers/misc
James Bottomley cc9b2e9f66 [SCSI] enclosure: fix oops while iterating enclosure_status array
Based on patch originally by Jeff Mahoney <jeffm@suse.com>

 enclosure_status is expected to be a NULL terminated array of strings
 but isn't actually NULL terminated. When writing an invalid value to
 /sys/class/enclosure/.../.../status, it goes off the end of the array
 and Oopses.


Fix by making the assumption true and adding NULL at the end.

Reported-by: Artur Wojcik <artur.wojcik@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2009-12-10 08:54:14 -06:00
..
c2port
cb710
eeprom
hdpuftrs
ibmasm
iwmc3200top
sgi-gru
sgi-xp Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl-2.6 2009-12-08 07:38:50 -08:00
atmel-ssc.c
atmel_pwm.c
atmel_tclib.c
ds1682.c
enclosure.c [SCSI] enclosure: fix oops while iterating enclosure_status array 2009-12-10 08:54:14 -06:00
ep93xx_pwm.c
hpilo.c
hpilo.h
ics932s401.c ics932s401: Clean up detect function 2009-12-06 17:06:26 +01:00
ioc4.c
isl29003.c
Kconfig Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging 2009-12-08 08:12:16 -08:00
kgdbts.c
lkdtm.c
Makefile Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging 2009-12-08 08:12:16 -08:00
phantom.c
tifm_7xx1.c
tifm_core.c