linux-sg2042/net/sunrpc/xprtrdma
Chuck Lever 5fc83f470d 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: c977dea (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>
2014-07-31 16:22:52 -04:00
..
Makefile xprtrdma: add separate Kconfig options for NFSoRDMA client and server support 2014-03-28 18:02:12 -04:00
rpc_rdma.c xprtrdma: Disconnect on registration failure 2014-06-04 08:56:53 -04:00
svc_rdma.c net: Convert uses of typedef ctl_table to struct ctl_table 2013-06-13 02:36:09 -07:00
svc_rdma_marshal.c svcrdma: underflow issue in decode_write_list() 2013-07-15 11:46:23 -04:00
svc_rdma_recvfrom.c svcrdma: Fence LOCAL_INV work requests 2014-06-06 19:22:51 -04:00
svc_rdma_sendto.c svcrdma: refactor marshalling logic 2014-06-06 19:22:50 -04:00
svc_rdma_transport.c svcrdma: refactor marshalling logic 2014-06-06 19:22:50 -04:00
transport.c xprtrdma: Disconnect on registration failure 2014-06-04 08:56:53 -04:00
verbs.c xprtrdma: Fix panic in rpcrdma_register_frmr_external() 2014-07-31 16:22:52 -04:00
xprt_rdma.h xprtrdma: Avoid deadlock when credit window is reset 2014-06-04 08:56:52 -04:00