summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorGuanghui Yang <3497809730@qq.com>2026-08-10 20:16:05 +0800
committerDavid Sterba <dsterba@suse.com>2026-09-02 00:01:40 +0200
commite0b54613aabeb8e9da597f23b90c6a03d0981986 (patch)
treeb11aac549c1214a0a00c3568bc43bac144612d2a /tools/lib/python/kdoc/python_version.py
parentc93b3c43df561cd9f592cee20ae058b563f9e5b6 (diff)
btrfs: restore active device pointers after failed sprout
btrfs_init_new_device() switches latest_dev and possibly s_bdev from the seed device to the new sprout device before creating the first writable chunks. If chunk creation or the subsequent sprout setup fails, the error path releases the new device without switching those pointers back. btrfs_show_devname() can then dereference the freed latest_dev and crash. Restore the active device pointers to the latest seed device before removing and releasing the failed sprout device. Fixes: b7cb29e666fe ("btrfs: update latest_dev when we create a sprout device") Assisted-by: Codex:gpt-5 Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Guanghui Yang <3497809730@qq.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions