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

Commit 73aea4ec authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds
Browse files

[PATCH] nfsd4: fix setclientid unlock of unlocked state lock



We could try to unlock the state lock here without having first locked it.

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 b59e3c0e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -678,13 +678,12 @@ nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_setclientid *setclid)
	int 			status;
	char                    dname[HEXDIR_LEN];
	
	status = nfserr_inval;
	if (!check_name(clname))
		goto out;
		return nfserr_inval;

	status = nfs4_make_rec_clidname(dname, &clname);
	if (status)
		goto out;
		return status;

	/* 
	 * XXX The Duplicate Request Cache (DRC) has been checked (??)