Repository navigation
Commit 68c94e5
btrfs: Transpose btrfs_close_devices/btrfs_mapping_tree_free in close_ctree
Following the introduction of the alloc_state tree, some of the callees
of btrfs_mapping_tree_free will have to interact with the btrfs_device
of the constituent devices. Enable this by moving the code responsible
for freeing devices after the last user (btrfs_mapping_tree_free).
Otherwise the kernel could crash due to use-after-free.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 8e75fd8 commit 68c94e5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4040 | 4040 | | |
4041 | 4041 | | |
4042 | 4042 | | |
4043 | | - | |
4044 | 4043 | | |
| 4044 | + | |
4045 | 4045 | | |
4046 | 4046 | | |
4047 | 4047 | | |
| |||
0 commit comments