mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:40:54 +07:00
[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:
parent
b59e3c0e17
commit
73aea4ecd3
@ -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 (??)
|
||||
|
Loading…
Reference in New Issue
Block a user