Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74f9c9c2 authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds
Browse files

[PATCH] hfs: don't reference missing page



If there was a read error, the bnode might miss some pages, so skip them.

Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f76d28d2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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]);
+2 −0
Original line number Diff line number Diff line
@@ -643,6 +643,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]);