]> git.baikalelectronics.ru Git - kernel.git/commit
hfsplus: fix failed mount handling
authorChristoph Hellwig <hch@tuxera.com>
Wed, 2 Feb 2011 16:32:39 +0000 (09:32 -0700)
committerChristoph Hellwig <hch@tuxera.com>
Thu, 3 Feb 2011 23:33:51 +0000 (16:33 -0700)
commit351e08566c14748d1fd9989771116a792d299d3c
tree5b99f48ad948c351ae07650c44009d847460329a
parentb10459a4feb823582640665135b61f481f25465a
hfsplus: fix failed mount handling

Currently the error handling in hfsplus_fill_super is a mess, and can
lead to accessing fields in the superblock that haven't been even set
up yet.  Fix this by making sure we do not set up sb->s_root until we
have the mount fully set up, and before that do proper step by step
unwinding instead of using hfsplus_put_super as a big hammer.

Reported-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/super.c