xprtrdma: Fix panic in rpcrdma_register_frmr_external()
seg1->mr_nsegs is not yet initialized when it is used to unmap
segments during an error exit. Use the same unmapping logic for
all error exits.
"if (frmr_wr.wr.fast_reg.length < len) {" used to be a BUG_ON check.
The broken code will never be executed under normal operation.
Fixes: c977dea2 (xprtrdma: Remove BUG_ON() call sites)
Signed-off-by:
Chuck Lever <chuck.lever@oracle.com>
Tested-by:
Steve Wise <swise@opengridcomputing.com>
Tested-by:
Shirley Ma <shirley.ma@oracle.com>
Tested-by:
Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by:
Anna Schumaker <Anna.Schumaker@Netapp.com>
Loading
Please register or sign in to comment