diff options
| author | Linus Torvalds <[email protected]> | 2010-10-29 17:36:49 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-10-29 17:36:49 +0000 |
| commit | 435f49a518c78eec8e2edbbadd912737246cbe20 (patch) | |
| tree | 106df2617d42ace231e2fa9fcf1e0fd1075874ea /tools/perf/scripts/python/syscall-counts.py | |
| parent | Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 (diff) | |
| download | kernel-435f49a518c78eec8e2edbbadd912737246cbe20.tar.gz kernel-435f49a518c78eec8e2edbbadd912737246cbe20.zip | |
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 <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
