Skip to content
Commit 586e46e2 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

Btrfs: close devices on all error paths in open_ctree()

Fix a bug introduced by 7e662854

 where we would leave devices busy on
certain error paths in open_ctree().  fs_info is guaranteed to be
non-NULL now so it's safe to dereference it on all error paths.

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 4d34b278
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment