]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
SCSI: ses: fix VPD inquiry overrun
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 5 Aug 2008 00:30:05 +0000 (00:30 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:04:58 +0000 (11:04 -0700)
commite563ea630d215ccb1103226c09efa35c3c4aebb7
treeb41a01f4f007d0c5b8ab0ff3bec4344f79684c27
parent84d21376c316abf7fd213f30f56781edf8c4e754
SCSI: ses: fix VPD inquiry overrun

commit 671a99c8eb2f1dde08ac5538d8cd912047c61ddf upstream

There are a few kerneloops.org reports like this one:

http://www.kerneloops.org/search.php?search=ses_match_to_enclosure

That seem to imply we're running off the end of the VPD inquiry data
(although at 512 bytes, it should be long enough for just about
anything).  we should be using correctly sized buffers anyway, so put
those in and hope this oops goes away.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/ses.c