Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a0e7e3cf
Commit
a0e7e3cf
authored
Mar 26, 2011
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Don't leak RPC clients in NFSv4 secinfo negotiation
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
4d65c520
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fs/nfs/namespace.c
fs/nfs/namespace.c
+3
-1
No files found.
fs/nfs/namespace.c
View file @
a0e7e3cf
...
@@ -192,13 +192,15 @@ static rpc_authflavor_t nfs_lookup_with_sec(struct nfs_server *server, struct de
...
@@ -192,13 +192,15 @@ static rpc_authflavor_t nfs_lookup_with_sec(struct nfs_server *server, struct de
auth
=
rpcauth_create
(
flavor
,
clone
);
auth
=
rpcauth_create
(
flavor
,
clone
);
if
(
!
auth
)
{
if
(
!
auth
)
{
flavor
=
-
EIO
;
flavor
=
-
EIO
;
goto
out
;
goto
out
_shutdown
;
}
}
err
=
server
->
nfs_client
->
rpc_ops
->
lookup
(
clone
,
parent
->
d_inode
,
err
=
server
->
nfs_client
->
rpc_ops
->
lookup
(
clone
,
parent
->
d_inode
,
&
path
->
dentry
->
d_name
,
&
path
->
dentry
->
d_name
,
fh
,
fattr
);
fh
,
fattr
);
if
(
err
<
0
)
if
(
err
<
0
)
flavor
=
err
;
flavor
=
err
;
out_shutdown:
rpc_shutdown_client
(
clone
);
out:
out:
return
flavor
;
return
flavor
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment