mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
aio: be defensive to ensure request batching is non-zero instead of BUG_ON()
In the event that an overflow/underflow occurs while calculating req_batch, clamp the minimum at 1 request instead of doing a BUG_ON(). Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
This commit is contained in:
parent
db446a08c2
commit
6878ea72a5
1 changed files with 2 additions and 1 deletions
3
fs/aio.c
3
fs/aio.c
Loading…
Add table
Add a link
Reference in a new issue