git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afs: Verify osi_UFSOpen worked
[openafs.git]
/
src
/
afs
/
VNOPS
/
afs_vnop_write.c
diff --git
a/src/afs/VNOPS/afs_vnop_write.c
b/src/afs/VNOPS/afs_vnop_write.c
index
44d0728
..
086fc9d
100644
(file)
--- a/
src/afs/VNOPS/afs_vnop_write.c
+++ b/
src/afs/VNOPS/afs_vnop_write.c
@@
-104,6
+104,9
@@
afs_UFSWriteUIO(struct vcache *avc, afs_dcache_id_t *inode, struct uio *tuiop)
int code;
tfile = (struct osi_file *)osi_UFSOpen(inode);
+ if (!tfile)
+ return -1;
+
#if defined(AFS_AIX41_ENV)
AFS_GUNLOCK();
code = VNOP_RDWR(tfile->vnode, UIO_WRITE, FWRITE, tuiop, NULL, NULL,