aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorBrian Foster <[email protected]>2023-04-18 13:05:47 -0400
committerKent Overstreet <[email protected]>2023-10-22 17:10:00 -0400
commit251babb55d53d79bba9568d6516fd11128c34606 (patch)
treef9ef72f6ae359ad98b01003ed8559d0243cf79c6 /tools/perf/scripts/python/libxed.py
parentbf98ee10d45af8e97c0802e39cc77ee607072633 (diff)
bcachefs: fix NULL bch_dev deref when checking bucket_gens keys
fsck removes bucket_gens keys for devices that do not exist in the volume (i.e., if the device was removed). In 'fsck -n' mode, the associated fsck_err_on() wrapper returns false to skip the key removal. This proceeds on to the rest of the function, which eventually segfaults on a NULL bch_dev because the device does not exist. Update bch2_check_bucket_gens_key() to skip out of the rest of the function when the associated device does not exist, regardless of running fsck in check or repair mode. Signed-off-by: Brian Foster <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions