Home
last modified time | relevance | path

Searched hist:cc9b2e9f6603190c009e5d2629ce8e3f99571346 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/
H A Denclosure.hdiff cc9b2e9f6603190c009e5d2629ce8e3f99571346 Thu Nov 26 09:50:20 CST 2009 James Bottomley <James.Bottomley@suse.de> [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>
/openbmc/linux/drivers/misc/
H A Denclosure.cdiff cc9b2e9f6603190c009e5d2629ce8e3f99571346 Thu Nov 26 09:50:20 CST 2009 James Bottomley <James.Bottomley@suse.de> [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>