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

From: "David S. Miller" <[email-masked]>
Date: Sat, 1 Nov 2003 19:29:26 -0800

On Sat, 1 Nov 2003 16:03:50 -0800
Andrew Morton <[email-masked]> 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?