summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-02-17 22:01:09 +0100
committerIngo Molnar <mingo@elte.hu>2008-04-23 09:01:29 +0200
commit28f0d72271671548e0478215f94deeaf1aef2215 (patch)
treef8dddad59ac21a111f82b94a9bc57092234d7fba /init
parent8d0213838573e9a6e5f26d80ca867b8099e1fd62 (diff)
kmemcheck: fix-up (some bogus) reports
Signed-off-by: Vegard Nossum <vegardno@ifi.uio.no> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 3885e70e7759..0dc5eb0bb895 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -201,9 +201,13 @@ static int __init do_mount_root(char *name, char *fs, int flags, void *data)
return 0;
}
+#if PAGE_SIZE < PATH_MAX
+# error increase the fs_names allocation size here
+#endif
+
void __init mount_block_root(char *name, int flags)
{
- char *fs_names = __getname();
+ char *fs_names = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 1);
char *p;
#ifdef CONFIG_BLOCK
char b[BDEVNAME_SIZE];
@@ -251,7 +255,7 @@ retry:
#endif
panic("VFS: Unable to mount root fs on %s", b);
out:
- putname(fs_names);
+ free_pages((unsigned long)fs_names, 1);
}
#ifdef CONFIG_ROOT_NFS