[SCSI] sd: Fix VPD buffer allocations
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 2 Mar 2010 13:44:34 +0000 (08:44 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 3 Mar 2010 13:43:16 +0000 (19:13 +0530)
commitbb2d3de1885cd69a5fc92af99c4e0c05eb5fc122
treeb791b04ce30406124aff45ed73966572f2955708
parent74315ad00b8ed41e9f97fe322942fa9883517ed1
[SCSI] sd: Fix VPD buffer allocations

Commit e3deec09 incorrectly assumed that the B0 and B1 page lengths were
limited to 32 bytes.  The B0 VPD page length is defined to be 64 bytes
when the device supports thin provisioning.  B1 is always defined to be
64 bytes.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/sd.c