diff options
Diffstat (limited to 'init')
| -rw-r--r-- | init/do_mounts_devfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts_devfs.c b/init/do_mounts_devfs.c index fe2bf5ad800f..652582658d28 100644 --- a/init/do_mounts_devfs.c +++ b/init/do_mounts_devfs.c @@ -54,7 +54,7 @@ static void * __init read_dir(char *path, int *len) if (fd < 0) return NULL; - for (size = 1 << 9; size <= (1 << MAX_ORDER); size <<= 1) { + for (size = 1 << 9; size <= (PAGE_SIZE << MAX_ORDER); size <<= 1) { void *p = kmalloc(size, GFP_KERNEL); int n; if (!p) |
