linux_dsm_epyc7002/drivers/infiniband/hw/hns
Wei Hu(Xavier) a74dc41d49 RDMA/hns: Check return value of kzalloc
When lp_qp_work is NULL, we should return ENOMEM.  In order to do so,
we had to make some upper layer functions return a value instead
of being void type so we can propagate the error up the stack.

This patch fixes the smatch error as below:
drivers/infiniband/hw/hns/hns_roce_hw_v1.c:918 hns_roce_v1_recreate_lp_qp()
error: potential null dereference 'lp_qp_work'.  (kzalloc returns null)

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-09-29 12:04:45 -04:00
..
hns_roce_ah.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_alloc.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_cmd.c RDMA/hns: Add mailbox's implementation for hip08 RoCE driver 2017-09-27 08:34:55 -04:00
hns_roce_cmd.h RDMA/hns: Add QP operations support for hip08 SoC 2017-09-27 08:34:56 -04:00
hns_roce_common.h RDMA/hns: Configure mac&gid and user access region for hip08 RoCE driver 2017-09-27 08:34:56 -04:00
hns_roce_cq.c RDMA/hns: Add support for processing send wr and receive wr 2017-09-27 08:34:56 -04:00
hns_roce_device.h RDMA/hns: Check return value of kzalloc 2017-09-29 12:04:45 -04:00
hns_roce_eq.c IB/hns: include linux/interrupt.h 2017-07-31 14:44:47 -04:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c RDMA/hns: make various function static, fixes warnings 2017-09-29 11:18:56 -04:00
hns_roce_hem.h RDMA/hns: Fix inconsistent warning 2017-09-27 08:34:56 -04:00
hns_roce_hw_v1.c RDMA/hns: Check return value of kzalloc 2017-09-29 12:04:45 -04:00
hns_roce_hw_v1.h RDMA/hns: Add mailbox's implementation for hip08 RoCE driver 2017-09-27 08:34:55 -04:00
hns_roce_hw_v2.c RDMA/hns: Check return value of kzalloc 2017-09-29 12:04:45 -04:00
hns_roce_hw_v2.h RDMA/hns: Configure the MTPT in hip08 2017-09-27 08:34:56 -04:00
hns_roce_main.c RDMA/hns: Check return value of kzalloc 2017-09-29 12:04:45 -04:00
hns_roce_mr.c RDMA/hns: remove redundant assignment to variable j 2017-09-29 11:18:56 -04:00
hns_roce_pd.c RDMA/hns: Configure mac&gid and user access region for hip08 RoCE driver 2017-09-27 08:34:56 -04:00
hns_roce_qp.c RDMA/hns: Add support for processing send wr and receive wr 2017-09-27 08:34:56 -04:00
Kconfig RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
Makefile RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00