From 307543629ddeb4b4f34ff5947038fd6a224547b5 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sat, 15 Jun 2002 18:11:18 +0000 Subject: [PATCH] linux-newvcache-make-sure-we-dont-try-to-iterate-null-pointer-20020615 based on report from wilder@us.ibm.com not clear this is sufficient --- src/afs/afs_vcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index ea2bc8b..c97e9a9 100644 --- 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); -- 1.9.4