]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] devfs do_mount fix
authorAndrew Morton <akpm@osdl.org>
Mon, 16 Feb 2004 02:05:58 +0000 (18:05 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 16 Feb 2004 02:05:58 +0000 (18:05 -0800)
From: James Morris <jmorris@redhat.com>

devfs is passing an empty string to do_mount when it expects a page.

fs/devfs/base.c

index fd79cc670d4accfe2c82c5579a32351182ab2e92..d31e67d98a148c84c6009a68da1465fbba57c1c5 100644 (file)
@@ -2840,7 +2840,7 @@ void __init mount_devfs_fs (void)
     int err;
 
     if ( !(boot_options & OPTION_MOUNT) ) return;
-    err = do_mount ("none", "/dev", "devfs", 0, "");
+    err = do_mount ("none", "/dev", "devfs", 0, NULL);
     if (err == 0) printk (KERN_INFO "Mounted devfs on /dev\n");
     else PRINTK ("(): unable to mount devfs, err: %d\n", err);
 }   /*  End Function mount_devfs_fs  */