Re: 2.5.67-mm2

From: Robert Love (rml@tech9.net)
Date: Sun Apr 13 2003 - 15:45:24 EST


On Sun, 2003-04-13 at 16:05, Andrew Morton wrote:

> It's a bk bug. This might make it boot:

Yah, I needed a similar patch to make 2.5.67-mm2 boot. Not sure if its
hiding the real problem or not, but it works.

Note the difference between mine and your's, though. I think you need
it.

        Robert Love

 drivers/base/class.c | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -urN linux-2.5.67/drivers/base/class.c linux/drivers/base/class.c
--- linux-2.5.67/drivers/base/class.c 2003-04-07 13:33:00.000000000 -0400
+++ linux/drivers/base/class.c 2003-04-13 16:32:52.000000000 -0400
@@ -103,12 +105,12 @@
         struct device_class * cls = get_devclass(drv->devclass);
         int error = 0;
 
- if (cls) {
+ if (cls && &cls->subsys) {
                 down_write(&cls->subsys.rwsem);
                 pr_debug("device class %s: adding driver %s:%s\n",
                          cls->name,drv->bus->name,drv->name);
                 error = devclass_drv_link(drv);
-
+
                 if (!error)
                         list_add_tail(&drv->class_list,&cls->drivers.list);
                 up_write(&cls->subsys.rwsem);

-
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/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:29 EST