RDMA/hns: Fix the bug with rq sge
authoroulijun <oulijun@huawei.com>
Fri, 4 May 2018 02:57:09 +0000 (10:57 +0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 14:45:18 +0000 (10:45 -0400)
commit778cc5a8b75eee62d330059a2655b515cda43278
tree7c3937d8ac0ccd701adc41f7c1947bce2c6d3e0b
parent391bd5fc7de54a5cb866e8897d60ee1d76b8840a
RDMA/hns: Fix the bug with rq sge

When received multiply rq sge, it should tag the
invalid lkey for the last non-zero length sge
when have some sges' length are zero. This patch
fixes it.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c