/[linux-patches]/genpatches-2.6/tags/2.6.32-47/1037_linux-2.6.32.38.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.32-47/1037_linux-2.6.32.38.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2037 - (show annotations) (download)
Wed Dec 28 14:38:55 2011 UTC (6 years, 9 months ago) by psomas
File size: 538 byte(s)
2.6.32-47 release
1 diff --git a/net/rds/rdma.c b/net/rds/rdma.c
2 index f7d8c08..6b09b94 100644
3 --- a/net/rds/rdma.c
4 +++ b/net/rds/rdma.c
5 @@ -473,14 +473,6 @@ static struct rds_rdma_op *rds_rdma_prepare(struct rds_sock *rs,
6
7 max_pages = max(nr, max_pages);
8 nr_pages += nr;
9 -
10 - /*
11 - * nr_pages for one entry is limited to (UINT_MAX>>PAGE_SHIFT)+1,
12 - * so tot_pages cannot overflow without first going negative.
13 - */
14 - if ((int)nr_pages < 0)
15 - ret = -EINVAL;
16 - goto out;
17 }
18
19 pages = kcalloc(max_pages, sizeof(struct page *), GFP_KERNEL);

  ViewVC Help
Powered by ViewVC 1.1.20