git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afs: Handle osi_NewVnode failures
[openafs.git]
/
src
/
afs
/
OBSD
/
osi_vcache.c
diff --git
a/src/afs/OBSD/osi_vcache.c
b/src/afs/OBSD/osi_vcache.c
index
2798a5f
..
07416b1
100644
(file)
--- a/
src/afs/OBSD/osi_vcache.c
+++ b/
src/afs/OBSD/osi_vcache.c
@@
-40,6
+40,9
@@
osi_NewVnode(void)
struct vcache *tvc;
tvc = afs_osi_Alloc(sizeof(struct vcache));
+ if (tvc == NULL) {
+ return NULL;
+ }
tvc->v = NULL; /* important to clean this, or use memset 0 */
return tvc;