diff options
| author | Johannes Thumshirn <[email protected]> | 2022-11-04 14:12:33 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-11-07 13:35:21 +0000 |
| commit | 21e61ec6d0bb786818490e926aa9aeb4de95ad0d (patch) | |
| tree | 6c047347027e9a2199976de75c777eb656972583 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | Revert "btrfs: scrub: use larger block size for data extent scrub" (diff) | |
| download | kernel-21e61ec6d0bb786818490e926aa9aeb4de95ad0d.tar.gz kernel-21e61ec6d0bb786818490e926aa9aeb4de95ad0d.zip | |
btrfs: zoned: clone zoned device info when cloning a device
When cloning a btrfs_device, we're not cloning the associated
btrfs_zoned_device_info structure of the device in case of a zoned
filesystem.
Later on this leads to a NULL pointer dereference when accessing the
device's zone_info for instance when setting a zone as active.
This was uncovered by fstests' testcase btrfs/161.
CC: [email protected] # 5.15+
Signed-off-by: Johannes Thumshirn <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
