]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-linux-newvcache-make-sure-we-dont-try-to-iterate-null-pointer-20020615
authorDerrick Brashear <shadow@dementia.org>
Wed, 10 Jul 2002 21:02:49 +0000 (21:02 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 10 Jul 2002 21:02:49 +0000 (21:02 +0000)
based on report from wilder@us.ibm.com
not clear this is sufficient

(cherry picked from commit 307543629ddeb4b4f34ff5947038fd6a224547b5)

src/afs/afs_vcache.c

index 0ff7f54cb797a8e6adb88b250c2c94ca436ae538..45c538ff96689e50afb7813b965d38e056fa9230 100644 (file)
@@ -495,7 +495,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);