mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
RDMA/core: Fix error return in _ib_modify_qp()
[ Upstream commit5333499c60] Fix to return error code PTR_ERR() from the error handling case instead of 0. Fixes:51aab12631("RDMA/core: Get xmit slave for LAG") Link: https://lore.kernel.org/r/20201016075845.129562-1-jingxiangfeng@huawei.com Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Reviewed-by: Maor Gottlieb <maorg@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
56cc090c2b
commit
e7c49c634a
|
|
@ -1698,8 +1698,10 @@ static int _ib_modify_qp(struct ib_qp *qp, struct ib_qp_attr *attr,
|
|||
slave = rdma_lag_get_ah_roce_slave(qp->device,
|
||||
&attr->ah_attr,
|
||||
GFP_KERNEL);
|
||||
if (IS_ERR(slave))
|
||||
if (IS_ERR(slave)) {
|
||||
ret = PTR_ERR(slave);
|
||||
goto out_av;
|
||||
}
|
||||
attr->xmit_slave = slave;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user