ibmvscsis: Fix max transfer length
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Wed, 11 Jan 2017 19:52:27 +0000 (13:52 -0600)
committerBart Van Assche <bart.vanassche@sandisk.com>
Tue, 17 Jan 2017 17:42:19 +0000 (09:42 -0800)
commit387b978cb0d12cf3720ecb17e652e0a9991a08e2
tree99d31dab3f303b677b5214b39ceace96912d9848
parent49def1853334396f948dcb4cedb9347abb318df5
ibmvscsis: Fix max transfer length

Current code incorrectly calculates the max transfer length, since
it is assuming a 4k page table, but ppc64 all run on 64k page tables.

Cc: stable@vger.kernel.org
Reported-by: Steven Royer <seroyer@linux.vnet.ibm.com>
Tested-by: Steven Royer <seroyer@linux.vnet.ibm.com>
Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c