]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit225c56960fcafeccc2b6304f96cd3f0dbf42a16a
tree3e3518154a0c329f776ae981b522b2f215c00372
parent9965c2f19be470c452357ae4f6304467cdeada55
[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