RDMA/rxe: Missing unlock on error in get_srq_wqe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Jun 2021 13:03:06 +0000 (16:03 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 25 Jun 2021 15:00:28 +0000 (12:00 -0300)
commit36941dfe0e8c3e2da7851b9648fd74bd3a3e78ce
tree87d0dd4d4f8de72d57cf6c4583b9e28cbc02b955
parent74f160ead74bfe5f2b38afb4fcf86189f9ff40c9
RDMA/rxe: Missing unlock on error in get_srq_wqe()

This error path needs to unlock before returning.

Fixes: ec0fa2445c18 ("RDMA/rxe: Fix over copying in get_srq_wqe")
Link: https://lore.kernel.org/r/YNXUCmnPsSkPyhkm@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Majd Dibbiny <majd@nvidia.com>
Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_resp.c