lkml.org 
[lkml]   [2002]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] for 2.5.50, sysfs works wrong in some cases
From
Date

Hello!

I've just found that 2.5.50 can't open root device specified in
'root=/dev/sda3' form. As for me, following patch solves problem:

--- vanilla/linux-2.5.50/drivers/block/genhd.c Mon Nov 11 06:28:13 2002
+++ linux-2.5.50/drivers/block/genhd.c Thu Dec 5 18:17:27 2002
@@ -408,7 +408,6 @@
disk->minors = minors;
while (minors >>= 1)
disk->minor_shift++;
- kobject_init(&disk->kobj);
disk->kobj.subsys = &block_subsys;
INIT_LIST_HEAD(&disk->full_list);

kobject_init() will be called from kobject_register().


with best, regards

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

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:3.661 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site