linux/drivers/infiniband/hw
Xiongfeng Wang 6830ff853a IB/mthca: fix return value of error branch in mthca_init_cq()
We return 'err' in the error branch, but this variable may be set as zero
by the above code. Fix it by setting 'err' as a negative value before we
goto the error label.

Fixes: 74c2174e7b ("IB uverbs: add mthca user CQ support")
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Link: https://lore.kernel.org/r/1605837422-42724-1-git-send-email-wangxiongfeng2@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-11-23 16:22:34 -04:00
..
bnxt_re RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
cxgb4 RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
efa RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
hfi1 IB/hfi1: Fix error return code in hfi1_init_dd() 2020-11-13 12:25:21 -04:00
hns RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
i40iw RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
mlx4 RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
mlx5 RDMA/mlx5: Fix devlink deadlock on net namespace deletion 2020-10-26 19:18:19 -03:00
mthca IB/mthca: fix return value of error branch in mthca_init_cq() 2020-11-23 16:22:34 -04:00
ocrdma RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
qedr RDMA/qedr: Fix memory leak in iWARP CM 2020-10-28 09:45:25 -03:00
qib Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
usnic RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
vmw_pvrdma RDMA/pvrdma: Fix missing kfree() in pvrdma_register_device() 2020-11-12 13:05:46 -04:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00