Re: 2.5.67-mm2

From: Alistair Strachan (alistair@devzero.co.uk)
Date: Sun Apr 13 2003 - 19:36:21 EST


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/



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