[SCSI] Return VPD page length in scsi_vpd_inquiry()
authorHannes Reinecke <hare@suse.de>
Sat, 15 Mar 2014 08:51:48 +0000 (09:51 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 27 Mar 2014 15:23:12 +0000 (08:23 -0700)
We should be returning the number of bytes of the
requested VPD page in scsi_vpd_inquiry.
This makes it easier for the caller to verify the
required space.

[jejb: fix up mm warning spotted by Sergey]
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi.c

Simple merge