]> git.ipfire.org Git - people/ms/linux.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:15:22 +0000 (11:15 -0700)
commita2c7bbce938caa71cd5c15db138974f1c88f1bd7
tree1be10f7d85210cab0a846e6d7458ef99101f458f
parent7cc646ee8cbc597dd5f531d784965c4d8225155e
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