commit | dce34ce298d85b81630401f4feb4bd7ac77fe9c7 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Sun Jun 17 15:47:53 2007 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Tue Jul 10 23:40:27 2007 -0400 |
tree | 9caa66cd3f03d500fdef5df290de23695589026d | |
parent | 2aefa104313996d1a9582476cee53d1296c834bf [diff] [blame] |
NFS: Prevent integer overflow in nfs_scan_list() Also ensure that nfs_inode ncommit and npages are large enough to represent all possible values for the number of pages. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index ad90cbe..68f6bf1 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c
@@ -425,6 +425,8 @@ req->wb_index, tag); nfs_list_add_request(req, dst); res++; + if (res == INT_MAX) + goto out; } }