IB/hns: Fix the bug for qp state in hns_roce_v1_m_qp()
authorLijun Ou <oulijun@huawei.com>
Wed, 23 Nov 2016 19:41:04 +0000 (19:41 +0000)
committerDoug Ledford <dledford@redhat.com>
Sat, 3 Dec 2016 19:20:42 +0000 (14:20 -0500)
commit1dec243ac00c6e10217c994c5a500bc85fe0f649
tree3ae9f16fd8714095758ce22bea4d748260bf71d8
parent80596c6717a7b0e9969ffbd03c7e1dd33112f7e9
IB/hns: Fix the bug for qp state in hns_roce_v1_m_qp()

In old code, the value of qp state from qpc was assigned for
attr->qp_state. The value may be an error while attr_mask &
IB_QP_STATE is zero.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c