VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Roman Zippel <zippel@linux-m68k.org> 2005-08-01 21:11:41 -0700 committer: Linus Torvalds <torvalds@g5.osdl.org> 2005-08-01 21:38:00 -0700 commit: 74f9c9c258249fba3e2e78f70691528426a6c010 parent: f76d28d235cf777dd2e1c1d48c16ee10c1d1587f
Commit Summary:
[PATCH] hfs: don't reference missing page
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/hfs/bnode.c b/fs/hfs/bnode.c
index 6ad1211f84ed..a096c5a56664 100644
--- a/fs/hfs/bnode.c
+++ b/fs/hfs/bnode.c
@@ -480,6 +480,8 @@ void hfs_bnode_put(struct hfs_bnode *node)
 			return;
 		}
 		for (i = 0; i < tree->pages_per_bnode; i++) {
+			if (!node->page[i])
+				continue;
 			mark_page_accessed(node->page[i]);
 #if REF_PAGES
 			put_page(node->page[i]);