summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.h
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@suse.de>2009-11-26 16:50:20 +0100
committerJames Bottomley <James.Bottomley@suse.de>2009-12-10 15:54:14 +0100
commitcc9b2e9f6603190c009e5d2629ce8e3f99571346 (patch)
tree922a81bd0d58261927da86342f005201cc1087a5 /drivers/scsi/sd.h
parent[SCSI] st: fix mdata->page_order handling (diff)
downloadlinux-cc9b2e9f6603190c009e5d2629ce8e3f99571346.tar.xz
linux-cc9b2e9f6603190c009e5d2629ce8e3f99571346.zip
[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>
Diffstat (limited to 'drivers/scsi/sd.h')
0 files changed, 0 insertions, 0 deletions