ib_srpt: Use correct ib_sg_dma primitives
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 7 Apr 2014 17:58:35 +0000 (13:58 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Apr 2014 22:31:20 +0000 (15:31 -0700)
commitb076808051f2c80d38e03fb2f1294f525c7a446d
treea3c4e85a78642f1bbb7632cee0c01c62dc8b83e9
parente3d4440cdccd4702225f519c9613a11e6fa49c65
ib_srpt: Use correct ib_sg_dma primitives

The code was incorrectly using sg_dma_address() and
sg_dma_len() instead of ib_sg_dma_address() and
ib_sg_dma_len().

This prevents srpt from functioning with the
Intel HCA and indeed will corrupt memory
badly.

Cc: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Tested-by: Vinod Kumar <vinod.kumar@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: stable@vger.kernel.org # 3.3+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/srpt/ib_srpt.c