Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8cddc5d authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Linus Torvalds
Browse files

[PATCH] knfsd: nfsd4: fix open_confirm locking



Fix an improper unlock in an error path.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7e405364
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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();