git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8f0ac00
)
check-flushvol-args-20001202
author
Nickolai Zeldovich
<kolya@mit.edu>
Sat, 2 Dec 2000 17:52:58 +0000 (17:52 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Sat, 2 Dec 2000 17:52:58 +0000 (17:52 +0000)
check args for flushvol
src/afs/afs_pioctl.c
patch
|
blob
|
history
diff --git
a/src/afs/afs_pioctl.c
b/src/afs/afs_pioctl.c
index
ef73203
..
fe5c9b5
100644
(file)
--- a/
src/afs/afs_pioctl.c
+++ b/
src/afs/afs_pioctl.c
@@
-2421,6
+2421,8
@@
struct AFS_UCRED *acred;
afs_int32 cell, volume;
AFS_STATCNT(PFlushVolumeData);
+ if (!avc)
+ return EINVAL;
if ( !afs_resourceinit_flag ) /* afs deamons havn't started yet */
return EIO; /* Inappropriate ioctl for device */