]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/srpt: Fix error return code in srpt_cm_req_recv()
authorWang Wensheng <wangwensheng4@huawei.com>
Thu, 8 Apr 2021 11:31:32 +0000 (11:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:36 +0000 (09:50 +0200)
commit6a07e5e39d4fb5f7a5b7feb6299701e1565c2083
tree6c76573edc9eb364d7f2e566842e59b74c6e4131
parent4601bcc6410c12947bf9b5e5ff8f1930f82d0cfa
RDMA/srpt: Fix error return code in srpt_cm_req_recv()

[ Upstream commit 6bc950beff0c440ac567cdc4e7f4542a9920953d ]

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

Fixes: db7683d7deb2 ("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>
drivers/infiniband/ulp/srpt/ib_srpt.c