git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afs: Use common cleanup code for lockctl EINVAL
[openafs.git]
/
src
/
afs
/
VNOPS
/
afs_vnop_flock.c
diff --git
a/src/afs/VNOPS/afs_vnop_flock.c
b/src/afs/VNOPS/afs_vnop_flock.c
index
0e92fc0
..
37e58ed
100644
(file)
--- a/
src/afs/VNOPS/afs_vnop_flock.c
+++ b/
src/afs/VNOPS/afs_vnop_flock.c
@@
-606,8
+606,8
@@
int afs_lockctl(struct vcache * avc, struct AFS_FLOCK * af, int acmd,
else if (af->l_type == F_UNLCK)
code = LOCK_UN;
else {
- afs_PutFakeStat(&fakestate);
- return EINVAL; /* unknown lock type */
+ code = EINVAL; /* unknown lock type */
+ goto done;
}
if (((acmd == F_SETLK)
#if defined(AFS_SGI_ENV)