aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2024-01-16 21:29:59 +0000
committerJens Axboe <[email protected]>2024-01-16 22:02:25 +0000
commit7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7 (patch)
tree434bc7943d25e5b21eeaf415c4b338311a1d4bc6 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentblock: bio-integrity: fix kcalloc() arguments order (diff)
downloadkernel-7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7.tar.gz
kernel-7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7.zip
block: Fix iterating over an empty bio with bio_for_each_folio_all
If the bio contains no data, bio_first_folio() calls page_folio() on a NULL pointer and oopses. Move the test that we've reached the end of the bio from bio_next_folio() to bio_first_folio(). Reported-by: [email protected] Reported-by: [email protected] Fixes: 640d1930bef4 ("block: Add bio_for_each_folio_all()") Cc: [email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] [axboe: add unlikely() to error case] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions