diff options
| author | Johannes Thumshirn <[email protected]> | 2023-05-04 11:58:13 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-05-17 11:08:28 +0000 |
| commit | 806570c0bb7b4847828c22c4934fcf2dc8fc572f (patch) | |
| tree | 4d06b65133912bdcc94d4a5f8ab530fb057abe27 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | btrfs: scrub: try harder to mark RAID56 block groups read-only (diff) | |
| download | kernel-806570c0bb7b4847828c22c4934fcf2dc8fc572f.tar.gz kernel-806570c0bb7b4847828c22c4934fcf2dc8fc572f.zip | |
btrfs: handle memory allocation failure in btrfs_csum_one_bio
Since f8a53bb58ec7 ("btrfs: handle checksum generation in the storage
layer") the failures of btrfs_csum_one_bio() are handled via
bio_end_io().
This means, we can return BLK_STS_RESOURCE from btrfs_csum_one_bio() in
case the allocation of the ordered sums fails.
This also fixes a syzkaller report, where injecting a failure into the
kvzalloc() call results in a BUG_ON().
Reported-by: [email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Anand Jain <[email protected]>
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_object.c')
0 files changed, 0 insertions, 0 deletions
