]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite604fa168810b23dbdd7efc9cda6565b04eb5206
treecd8b916021c7b2d121fa3d48d72455a4604029a1
parent286f44917650be0451f6726b35be2ef78d65b7f0
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