]> err.no Git - linux-2.6/commit
[SCSI] ses: fix VPD inquiry overrun
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 29 Jul 2008 16:38:25 +0000 (11:38 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 30 Jul 2008 15:21:56 +0000 (10:21 -0500)
commit671a99c8eb2f1dde08ac5538d8cd912047c61ddf
treeb02cba45dbe7a69a7c9c24aa815bd3e82fde7725
parentad337591f4fd20de6a0ca03d6715267a5c1d2b16
[SCSI] ses: fix VPD inquiry overrun

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.

Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ses.c