IB/srp: Initialize dma_length in srp_map_idb
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Dec 2015 18:18:30 +0000 (10:18 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 7 Dec 2015 22:20:11 +0000 (17:20 -0500)
commitfc925518aa04ee9f03c4e0cadd9c59f1ef48bcfa
tree57f2c0d0987fb4012a9c7e6de5ebf47e230ee4c3
parent09c0c0bea500a9ad362589990ee316c9b2482f44
IB/srp: Initialize dma_length in srp_map_idb

Without this sg_dma_len will return 0 on architectures tha have
the dma_length field.

Fixes: commit f7f7aab1a5c0 ("IB/srp: Convert to new registration API")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c