mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
RDMA/srpt: Fix error return code in srpt_cm_req_recv()
[ Upstream commit6bc950beff] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes:db7683d7de("IB/srpt: Fix login-related race conditions") Link: https://lore.kernel.org/r/20210408113132.87250-1-wangwensheng4@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e1d10b2cc7
commit
ed016b7701
@@ -2373,6 +2373,7 @@ static int srpt_cm_req_recv(struct srpt_device *const sdev,
|
||||
pr_info("rejected SRP_LOGIN_REQ because target %s_%d is not enabled\n",
|
||||
dev_name(&sdev->device->dev), port_num);
|
||||
mutex_unlock(&sport->mutex);
|
||||
ret = -EINVAL;
|
||||
goto reject;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user