]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ibmvscsi: Fix host config length field overflow
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Jul 2012 01:33:05 +0000 (11:33 +1000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:48:49 +0000 (03:48 +0100)
commit9b6c30f597019f8817fb8a7619c8197b0cdc396a
treecdbf0e909bc8981e36bc1458899d90a060474105
parenta7e99acebfbeab9dec2bda2c1754f98d41ace1e2
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: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/ibmvscsi/ibmvscsi.c