提交 a0e7e3cf 编写于 作者: T Trond Myklebust

NFS: Don't leak RPC clients in NFSv4 secinfo negotiation

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 4d65c520
......@@ -192,13 +192,15 @@ static rpc_authflavor_t nfs_lookup_with_sec(struct nfs_server *server, struct de
auth = rpcauth_create(flavor, clone);
if (!auth) {
flavor = -EIO;
goto out;
goto out_shutdown;
}
err = server->nfs_client->rpc_ops->lookup(clone, parent->d_inode,
&path->dentry->d_name,
fh, fattr);
if (err < 0)
flavor = err;
out_shutdown:
rpc_shutdown_client(clone);
out:
return flavor;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册