]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix ATM initcall ordering.
authorDaniel Walker <dwalker@mvista.com>
Wed, 7 Feb 2007 05:56:37 +0000 (21:56 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:19 +0000 (10:50 -0800)
commit977e7e120593695d1a5ac66df5dbd44113ce49a8
tree452ae119c1277cdd967c18bbbe9886ab8e4f2501
parent789daef87cd3fe0ed77dfc8a26356982f14fa023
Fix ATM initcall ordering.

[ATM]: Fix for crash in adummy_init()

This was reported by Ingo Molnar here,

http://lkml.org/lkml/2006/12/18/119

The problem is that adummy_init() depends on atm_init() , but adummy_init()
is called first.

So I put atm_init() into subsys_initcall which seems appropriate, and it
will still get module_init() if it becomes a module.

Interesting to note that you could crash your system here if you just load
the modules in the wrong order.

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/atm/common.c