diff options
| author | Su Yue <[email protected]> | 2021-01-03 09:28:03 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-01-07 16:25:05 +0000 |
| commit | 29b665cc51e8b602bf2a275734349494776e3dbc (patch) | |
| tree | 566b6c8508abfb62382bb43d9f7c2e4a46716324 /tools/perf/builtin-script.c | |
| parent | btrfs: print the actual offset in btrfs_root_name (diff) | |
| download | kernel-29b665cc51e8b602bf2a275734349494776e3dbc.tar.gz kernel-29b665cc51e8b602bf2a275734349494776e3dbc.zip | |
btrfs: prevent NULL pointer dereference in extent_io_tree_panic
Some extent io trees are initialized with NULL private member (e.g.
btrfs_device::alloc_state and btrfs_fs_info::excluded_extents).
Dereference of a NULL tree->private as inode pointer will cause panic.
Pass tree->fs_info as it's known to be valid in all cases.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=208929
Fixes: 05912a3c04eb ("btrfs: drop extent_io_ops::tree_fs_info callback")
CC: [email protected] # 4.19+
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: Su Yue <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
