commit | 435f49a518c78eec8e2edbbadd912737246cbe20 | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@linux-foundation.org> | Fri Oct 29 10:36:49 2010 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Fri Oct 29 10:36:49 2010 -0700 |
tree | 106df2617d42ace231e2fa9fcf1e0fd1075874ea | |
parent | f56f44001cb5b40089deac094dbb74e5c9f64d81 [diff] |
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: Linus Torvalds <torvalds@linux-foundation.org>