aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2020-02-13 10:47:28 -0500
committerDavid Sterba <[email protected]>2020-02-19 00:36:35 +0100
commit315bf8ef914f31d51d084af950703aa1e09a728c (patch)
tree4d592990138af7d7b60144f63b47563ae8c52f39 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parent81f7eb00ff5bb8326e82503a32809421d14abb8a (diff)
btrfs: reset fs_root to NULL on error in open_ctree
While running my error injection script I hit a panic when we tried to clean up the fs_root when freeing 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. CC: [email protected] # 4.4+ Reviewed-by: Nikolay Borisov <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions