git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d13f701
)
linux-newvcache-make-sure-we-dont-try-to-iterate-null-pointer-20020615
author
Derrick Brashear
<shadow@dementia.org>
Sat, 15 Jun 2002 18:11:18 +0000 (18:11 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Sat, 15 Jun 2002 18:11:18 +0000 (18:11 +0000)
based on report from wilder@us.ibm.com
not clear this is sufficient
src/afs/afs_vcache.c
patch
|
blob
|
history
diff --git
a/src/afs/afs_vcache.c
b/src/afs/afs_vcache.c
index
ea2bc8b
..
c97e9a9
100644
(file)
--- a/
src/afs/afs_vcache.c
+++ b/
src/afs/afs_vcache.c
@@
-491,7
+491,7
@@
restart:
repeat:
next = this_parent->d_subdirs.next;
resume:
- while (next != &this_parent->d_subdirs) {
+ while (next && next != &this_parent->d_subdirs) {
struct list_head *tmp = next;
struct dentry *dchld = list_entry(tmp, struct dentry, d_child);