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
This commit is contained in:
Derrick Brashear 2002-06-15 18:11:18 +00:00
parent d13f701812
commit 307543629d

View File

@ -491,7 +491,7 @@ restart:
repeat: repeat:
next = this_parent->d_subdirs.next; next = this_parent->d_subdirs.next;
resume: resume:
while (next != &this_parent->d_subdirs) { while (next && next != &this_parent->d_subdirs) {
struct list_head *tmp = next; struct list_head *tmp = next;
struct dentry *dchld = list_entry(tmp, struct dentry, d_child); struct dentry *dchld = list_entry(tmp, struct dentry, d_child);