lkml.org 
[lkml]   [2003]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: 2.5.67-mm2
    Date
    On Sunday 13 April 2003 21:05, Andrew Morton wrote:
    >
    > It's a bk bug. This might make it boot:
    >
    > drivers/base/class.c | 2 +-
    > 1 files changed, 1 insertion(+), 1 deletion(-)
    >
    > diff -puN drivers/base/class.c~a drivers/base/class.c
    > --- 25/drivers/base/class.c~a 2003-04-13 13:04:47.000000000 -0700
    > +++ 25-akpm/drivers/base/class.c 2003-04-13 13:04:52.000000000 -0700
    > @@ -105,7 +105,7 @@ int devclass_add_driver(struct device_dr
    > 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);
    >

    Ah yes. Works fine, thanks.

    Cheers,
    Alistair.

    -
    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:34    [W:0.019 / U:29.752 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site