Files
linux/drivers/misc
James Bottomley 8cef765ff1 SCSI: enclosure: fix oops while iterating enclosure_status array
commit cc9b2e9f66 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-25 10:49:37 -08:00
..
2009-11-26 09:22:33 +01:00
2008-10-30 11:38:46 -07:00
2009-09-15 09:50:48 -07:00
2009-05-06 16:36:10 -07:00
2009-09-23 07:39:27 -07:00