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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Oct 2012 15:32:28 +0000 (08:32 -0700)
commit54ce2fb86f0b78808c7fcc1d581ebbf15ca36e91
tree6e979c7933a334c89279a11bc4ec2b60e74b7c20
parent7d0fcfec4c491eb3c815929be5512ae8d1886553
SCSI: ibmvscsi: Fix host config length field overflow

commit 225c56960fcafeccc2b6304f96cd3f0dbf42a16a upstream.

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>
Acked-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ibmvscsi/ibmvscsi.c