NFS: Let xdr_read_pages() check for buffer overflows
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 21 Jun 2012 02:35:05 +0000 (22:35 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 28 Jun 2012 21:20:43 +0000 (17:20 -0400)
xdr_read_pages will already do all of the buffer overflow checks that are
currently being open-coded in the various callers. This patch simplifies
the existing code by replacing the open coded checks.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

No differences found