From: Linus Torvalds Date: Fri, 29 Oct 2010 17:36:49 +0000 (-0700) Subject: readv/writev: do the same MAX_RW_COUNT truncation that read/write does X-Git-Tag: v2.6.37-rc1~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=435f49a518c78eec8e2edbbadd912737246cbe20;p=pandora-kernel.git 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 --- Reading git-diff-tree failed