mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 00:26:39 +08:00
[PATCH] knfsd: nfsd4: fix open_confirm locking
Fix an improper unlock in an error path. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7e4053645a
commit
a8cddc5dfc
@ -2252,8 +2252,9 @@ nfsd4_open_confirm(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfs
|
||||
(int)current_fh->fh_dentry->d_name.len,
|
||||
current_fh->fh_dentry->d_name.name);
|
||||
|
||||
if ((status = fh_verify(rqstp, current_fh, S_IFREG, 0)))
|
||||
goto out;
|
||||
status = fh_verify(rqstp, current_fh, S_IFREG, 0);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
nfs4_lock_state();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user