pagetest.c (c1144d29f405ce1f4e6ede6482beb3d0d09750c6) pagetest.c (6396bb221514d2876fd6dc0aa2a1f240d99b37bb)
1/*
2 * Copyright (C) 2006-2008 Nokia Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published by
6 * the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT

--- 113 unchanged lines hidden (view full) ---

122
123static int crosstest(void)
124{
125 int err = 0, i;
126 loff_t addr, addr0, addrn;
127 unsigned char *pp1, *pp2, *pp3, *pp4;
128
129 pr_info("crosstest\n");
1/*
2 * Copyright (C) 2006-2008 Nokia Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published by
6 * the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT

--- 113 unchanged lines hidden (view full) ---

122
123static int crosstest(void)
124{
125 int err = 0, i;
126 loff_t addr, addr0, addrn;
127 unsigned char *pp1, *pp2, *pp3, *pp4;
128
129 pr_info("crosstest\n");
130 pp1 = kzalloc(pgsize * 4, GFP_KERNEL);
130 pp1 = kcalloc(pgsize, 4, GFP_KERNEL);
131 if (!pp1)
132 return -ENOMEM;
133 pp2 = pp1 + pgsize;
134 pp3 = pp2 + pgsize;
135 pp4 = pp3 + pgsize;
136
137 addr0 = 0;
138 for (i = 0; i < ebcnt && bbt[i]; ++i)

--- 335 unchanged lines hidden ---
131 if (!pp1)
132 return -ENOMEM;
133 pp2 = pp1 + pgsize;
134 pp3 = pp2 + pgsize;
135 pp4 = pp3 + pgsize;
136
137 addr0 = 0;
138 for (i = 0; i < ebcnt && bbt[i]; ++i)

--- 335 unchanged lines hidden ---