[Top] [All Lists]

Oops in do_mounts.c file.

To: <>
Subject: Oops in do_mounts.c file.
From: "Dan Aizenstros" <>
Date: Fri, 04 Jan 2002 12:57:00 -0800
Hello all,

I am getting an oops in the mount_root function if I
pass root=/dev/nfs to my 2.5.1 kernel.

I am also getting an oops in the mount_block_root
function if I pass root=/dev/hda3 to my 2.5.1 kernel.

The problem appears to be related to the following two
lines in the init/do_mounts.c file:

static char * __initdata root_mount_data;

static char * __initdata root_fs_names;

The __initdata macro appears to be incorrectly used.

In include/linux/init.h the explanation for the macro
says the __initdata should appear after the variable
name.  It also indicates that the variable shoud be

The attached patch fixes the problem.

-- Dan A.

Attachment: do_mounts.patch
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>