| commit | 248022ffae3f641fd618b571e2a10bde37b1f148 | [log] [tgz] |
|---|---|---|
| author | Keith Busch <kbusch@kernel.org> | Tue Jul 05 08:45:05 2022 -0700 |
| committer | Keith Busch <kbusch@kernel.org> | Tue Jul 05 10:12:51 2022 -0600 |
| tree | 4b5af5028f4942cf2374c1dd65792850378137ad | |
| parent | 35006342b7393277af2c86c7d1b26151fdcac1e2 [diff] |
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>