[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: 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:
Neil Brown 2005-09-13 01:25:39 -07:00 committed by Linus Torvalds
parent b59e3c0e17
commit 73aea4ecd3

View File

@ -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 (??)