Commit 39a488d1 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] nfsd4_setclientid_confirm locking fix

Avoid unlock-without-lock problem on error path in nfsd4_setclientid_confirm
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 97f7ccbd
......@@ -802,9 +802,8 @@ nfsd4_setclientid_confirm(struct svc_rqst *rqstp, struct nfsd4_setclientid_confi
clientid_t * clid = &setclientid_confirm->sc_clientid;
int status;
status = nfserr_stale_clientid;
if (STALE_CLIENTID(clid))
goto out;
return nfserr_stale_clientid;
/*
* XXX The Duplicate Request Cache (DRC) has been checked (??)
* We get here on a DRC miss.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment