]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Fix error handling in rpcrdma_prepare_msg_sges()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 20 Oct 2017 14:47:47 +0000 (10:47 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Nov 2017 18:47:55 +0000 (13:47 -0500)
commitea047bf8c86289350658b3cd9430279fe7a75d12
tree7d59d2232665888050bed5a714e304550fc56128
parentc29d48731205c9ae933d96900b31a14521ef2cce
xprtrdma: Fix error handling in rpcrdma_prepare_msg_sges()

When this function fails, it needs to undo the DMA mappings it's
done so far. Otherwise these are leaked.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c