diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2011-11-09 13:41:22 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2011-11-09 21:53:39 +0100 |
commit | 04d21a244fdf79d0ac892eaaa9a46b682467277c (patch) | |
tree | da0cadb86766bbf34f30c4b3efddde01e3d6d677 /fs/compat_ioctl.c | |
parent | Btrfs: close devices on all error paths in open_ctree() (diff) | |
download | linux-04d21a244fdf79d0ac892eaaa9a46b682467277c.tar.xz linux-04d21a244fdf79d0ac892eaaa9a46b682467277c.zip |
Btrfs: rework error handling in btrfs_mount()
Commits 6c41761f and 45ea6095 introduced the possibility of NULL pointer
dereference on error paths, also we would leave all devices busy and
leak fs_info with all sub-structures on error when trying to mount an
already mounted fs to a different directory.
Fix this by doing all allocations before trying to open any of the
devices, adjust error path for mount-already-mounted-fs case.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/compat_ioctl.c')
0 files changed, 0 insertions, 0 deletions