[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)
commitbc8945df3c27e8edaa6a6de47cb20df7d12b80c8
treedddd0617c03ee44eb98a8823d25820308e7aea5d
parent276b20d09be7a1c260f0a94880d33e0850efe200
[SCSI] Return VPD page length in scsi_vpd_inquiry()

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