xprtrdma: Don't leak freed MRs
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Dec 2018 16:00:48 +0000 (11:00 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Jan 2019 17:05:18 +0000 (12:05 -0500)
commitf85adb1bf59557909f86f71cf4b1e5a906bdb465
treee7b5015f71dda5280e7e9637056015052e34f02e
parentaf65ed404c437684c9f58d0c37495abedcdfa3fc
xprtrdma: Don't leak freed MRs

Defensive clean up. Don't set frwr->fr_mr until we know that the
scatterlist allocation has succeeded.

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