Eric Sesterhenn 706322496b Fix hfsplus oops on image without extents
Fix an oops with a corrupted hfs+ image.

See http://bugzilla.kernel.org/show_bug.cgi?id=10548 for details.

Problem is that we call hfs_btree_open() from hfsplus_fill_super() to set
HFSPLUS_SB(sb).[ext_tree|cat_tree] Both trees are still NULL at this moment.
If hfs_btree_open() fails for any reason it calls iput() on the page, which
gets to hfsplus_releasepage() which tries to access HFSPLUS_SB(sb).* which is
still NULL and oopses while dereferencing it.

[akpm@linux-foundation.org: build fix]
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-13 08:02:24 -07:00
..
2006-01-18 19:20:22 -08:00
2006-01-18 19:20:22 -08:00
2008-04-10 13:37:51 -07:00
2007-10-16 09:42:56 -07:00
2008-04-29 08:06:00 -07:00
2005-04-16 15:20:36 -07:00
2008-04-29 08:06:02 -07:00
2006-10-03 23:01:26 +02:00
2008-04-30 08:29:51 -07:00
2005-04-16 15:20:36 -07:00