[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:
Родитель
7e4053645a
Коммит
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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче