[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)
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>

No differences found