netdev
[Top] [All Lists]

Re: Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-b

To: Andrew Morton <akpm@xxxxxxxx>
Subject: Re: Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-bk
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Sat, 1 Nov 2003 19:29:26 -0800
Cc: liste@xxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20031101160350.2f1fe0af.akpm@osdl.org>
References: <1067705386.666.1.camel@chevrolet.hybel> <20031101133601.7cf12497.akpm@osdl.org> <1067723628.643.0.camel@chevrolet.hybel> <20031101160350.2f1fe0af.akpm@osdl.org>
Sender: netdev-bounce@xxxxxxxxxxx
On Sat, 1 Nov 2003 16:03:50 -0800
Andrew Morton <akpm@xxxxxxxx> wrote:

> OK, it goes bang because ptype_all has not been initialised yet.
> 
> This is because net_dev_init() is fs_initcall, and irda_init() is
> subsys_initcall - irda_init() runs before net_dev_init().
> 
> Dave, I'm not sure what's the best thing to do here - I was afraid that the
> initcall level shuffling was a bit premature.

Turns out my suspicions were correct afterall :-)

If it's just ptype_all that it needs, why don't we just initialize
that one list head at compile time?

<Prev in Thread] Current Thread [Next in Thread>