Re: 2.6.2-mm1, selinux, and initrd

From: Andrew Morton
Date: Sat Feb 07 2004 - 20:33:38 EST


Valdis.Kletnieks@xxxxxx wrote:
>
> On Sat, 07 Feb 2004 08:49:28 EST, James Morris said:
>
> > Ok, looks like a problem where devfs is passing an empty string to
> > do_mount when it expects a page.
> >
> > Please try the patch below against 2.6.2-mm1.
>
> OK, thanks.. that's a "confirmed working"...
>


So I queue up the below patch, yes?



From: James Morris <jmorris@xxxxxxxxxx>

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



---

fs/devfs/base.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/devfs/base.c~devfs-do_mount-fix fs/devfs/base.c
--- 25/fs/devfs/base.c~devfs-do_mount-fix 2004-02-07 07:37:51.000000000 -0800
+++ 25-akpm/fs/devfs/base.c 2004-02-07 07:37:51.000000000 -0800
@@ -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 */

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/