commit | 0f97c17b7082e5cb02a89036a0e679931443cb6d | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Tue Feb 11 16:40:39 2020 -0500 |
committer | Josef Bacik <josef@toxicpanda.com> | Fri Feb 14 10:04:08 2020 -0500 |
tree | 90b6a1826e04641dbb19cd896001cccfe9f66abe | |
parent | 43ca3fed6aae44321e78494f1d4e08a0adfdee11 [diff] |
btrfs: set fs_root = NULL on error While running my error injection script I hit a panic when we tried to clean up the fs_root when free'ing the fs_root. This is because fs_info->fs_root == PTR_ERR(-EIO), which isn't great. Fix this by setting fs_info->fs_root = NULL; if we fail to read the root. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Qu Wenruo <wqu@suse.com>