1
0
Files
linux/include/linux
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
..
2009-12-03 11:58:47 +00:00
2009-11-28 15:05:05 -05:00
2009-12-02 23:38:13 -08:00
2009-12-04 15:39:57 +01:00
2009-12-03 12:03:40 +05:30
2009-12-03 09:32:17 +02:00
2009-11-28 15:05:05 -05:00
2009-12-03 11:43:23 +00:00
2009-12-02 09:55:33 +01:00
2009-12-03 11:53:02 +00:00
2009-11-30 12:02:53 +09:00
2009-12-02 19:57:15 -08:00