Commit 4c1da7a7 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] initrd issue

Fix initrd problem that appeared back in 2.5.2-pre6 when kdev_t type
changed and comparison function was incorrectly converted..
parent 085c9a18
...@@ -826,7 +826,7 @@ void prepare_namespace(void) ...@@ -826,7 +826,7 @@ void prepare_namespace(void)
create_dev("/dev/root", ROOT_DEV, NULL); create_dev("/dev/root", ROOT_DEV, NULL);
if (mount_initrd) { if (mount_initrd) {
if (initrd_load() && kdev_same(ROOT_DEV, mk_kdev(RAMDISK_MAJOR, 0))) { if (initrd_load() && !kdev_same(ROOT_DEV, mk_kdev(RAMDISK_MAJOR, 0))) {
handle_initrd(); handle_initrd();
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment