diff options
author | Keith Busch <kbusch@kernel.org> | 2022-07-12 18:32:55 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-03 06:08:54 +0300 |
commit | 34cdb8c825f28a5c91c5336a80967533da57da74 (patch) | |
tree | c3cf2f81d5b7294b1cc104394e41d338f1771f96 /scripts/gdb/linux/proc.py | |
parent | 325347d965e7ccf5424a05398807a6d801846612 (diff) | |
download | linux-34cdb8c825f28a5c91c5336a80967533da57da74.tar.xz |
block: ensure bio_iov_add_page can't fail
Adding the page could fail on the bio_full() condition, which checks for
either exceeding the bio's max segments or total size exceeding
UINT_MAX. We already ensure the max segments can't be exceeded, so just
ensure the total size won't reach the limit. This simplifies error
handling and removes unnecessary repeated bio_full() checks.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20220712153256.2202024-2-kbusch@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions