]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 14:45:11 +0000 (07:45 -0700)
commitb3aa44d1ddc65a2e7e818cf6ced8dc03ad56e6a4
treefb200e2b256bc7db4fc9e45a3cbca7d5cb241ad9
parent6705e010e9ea11dff0509b1d2c24d0ea84fcbeb3
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