[SCSI] Fix VPD inquiry page wrapper
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Sep 2010 05:20:27 +0000 (01:20 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 16 Sep 2010 15:48:48 +0000 (11:48 -0400)
commit16d3ea26f82271fef9b1c4523b5e1ea31fa39eec
treeeeb4e01e9d46adc8f83208d1162cc8f4ab327128
parent9c03f1622af051004416dd3e24d8a0fa31e34178
[SCSI] Fix VPD inquiry page wrapper

Fix two bugs in the VPD page wrapper:

    - Don't return failure if the user asked for page 0

    - The end of buffer check failed to account for the page header size
      and consequently didn't work

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi.c