RDMA/rxe: Fix error path code in rxe_create_qp
Status from this message: Applied to for-next, thanks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 4 repliesApplied
- v13 patches 2 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | RDMA/rxe: Move work queue code to subroutinesdrivers/ | +108 | 3 replies | |
| 2/3 | RDMA/rxe: Fix unsafe drain work queue codedrivers/ drivers/ | +8 | 0 replies | |
| 3/3 | RDMA/rxe: Fix rxe_modify_srqdrivers/ drivers/ | +36 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Zhu Yanjun |
|---|---|
| 1/3 | A-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH for-next v2 0/3] RDMA/rxe: Fix error path code in rxe_create_qp
If a call to rxe_create_qp() fails in rxe_qp_from_init() rxe_cleanup(qp) will be called. This code currently does not correctly handle cases where not all qp resources are allocated and can seg fault as reported below. The first two patches cleanup cases where this happens. The third patch corrects an error in rxe_srq.c where if caller requests a change in the srq size the correct new value is not returned to caller.
This patch series applies cleanly to the current for-next branch.
---
v2: Reverted a partially implemented change in patch 3/3 which was
incorrect.
Bob Pearson (3):
RDMA/rxe: Move work queue code to subroutines
RDMA/rxe: Fix unsafe drain work queue code
RDMA/rxe: Fix rxe_m-dify_srq
drivers/infiniband/sw/rxe/rxe_comp.c | 4 + drivers/infiniband/sw/rxe/rxe_loc.h | 6 - drivers/infiniband/sw/rxe/rxe_qp.c | 163 ++++++++++++++++++--------- drivers/infiniband/sw/rxe/rxe_resp.c | 4 + drivers/infiniband/sw/rxe/rxe_srq.c | 60 ++++++---- 5 files changed, 152 insertions(+), 85 deletions(-)
base-commit: 830f93f47068b1632cc127871fbf27e918efdf46
Signature · 1 line
2.39.2