OSDN Git Service

RDMA/hns: Fix the bug with NULL pointer
authoroulijun <oulijun@huawei.com>
Fri, 4 May 2018 02:57:13 +0000 (10:57 +0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 14:45:18 +0000 (10:45 -0400)
commita0403be8af338c319b5176c1d2975d94a930a0bf
treecd8b916021c7b2d121fa3d48d72455a4604029a1
parent79d442071a733057e4d9f28c90fbdb4f39d9fc23
RDMA/hns: Fix the bug with NULL pointer

When the last QP of eight QPs is not exist in
hns_roce_v1_mr_free_work_fn function, the
print for qpn of hr_qp may introduce a
calltrace for NULL pointer.

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