diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index c36ef75f2054bb3803f8764c1e884745be6b055b..ef90424ab06fe3f846d7bc1b5b3e86944b57f9e9 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -2073,8 +2073,10 @@ static int nfs4_try_migration(struct nfs_server *server, struct rpc_cred *cred) } status = nfs4_begin_drain_session(clp); - if (status != 0) - return status; + if (status != 0) { + result = status; + goto out; + } status = nfs4_replace_transport(server, locations); if (status != 0) {