Skip to content
Commit c5b8d0bc authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

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: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@tuxera.com>
parent ebf53826
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment