提交 73aea4ec 编写于 作者: N Neil Brown 提交者: Linus Torvalds

[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: NJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 b59e3c0e
......@@ -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 (??)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册