]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/bnxt_re: Fix error return code in bnxt_qplib_cq_process_terminal()
authorWang Wensheng <wangwensheng4@huawei.com>
Thu, 8 Apr 2021 11:31:37 +0000 (11:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:08 +0000 (10:50 +0200)
commit5ade88dd8305aa5618d9a78445f0c3bb08ed9dae
tree8aac12447d58584a0bcb56028e4e0fb513e424f0
parent425258b2b7256816834f42468d50ea4c07e7cdaa
RDMA/bnxt_re: Fix error return code in bnxt_qplib_cq_process_terminal()

[ Upstream commit 22efb0a8d130c6379c1eb64cbace1542b27e37ff ]

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Link: https://lore.kernel.org/r/20210408113137.97202-1-wangwensheng4@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/bnxt_re/qplib_fp.c