]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] ibmvscsi: Fix host config length field overflow
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Jul 2012 01:33:05 +0000 (11:33 +1000)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:11:09 +0000 (12:11 +0400)
commit09907f5a832f6b90b32bc36d807a87f1666bd824
tree3e3518154a0c329f776ae981b522b2f215c00372
parent6d0ef8b6cb819ef90d082de03ce2f03a0c03e7b7
[SCSI] ibmvscsi: Fix host config length field overflow

The length field in the host config packet is only 16-bit long, so
passing it 0x10000 (64K which is our standard PAGE_SIZE) doesn't
work and result in an empty config from the server.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: <stable@vger.kernel.org>
Acked-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ibmvscsi/ibmvscsi.c