Skip to content
Commit 435f49a5 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

readv/writev: do the same MAX_RW_COUNT truncation that read/write does



We used to protect against overflow, but rather than return an error, do
what read/write does, namely to limit the total size to MAX_RW_COUNT.
This is not only more consistent, but it also means that any broken
low-level read/write routine that still keeps counts in 'int' can't
break.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f56f4400
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment