]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[ATM]: Fix for crash in adummy_init()
authorDaniel Walker <dwalker@mvista.com>
Wed, 14 Feb 2007 08:33:14 +0000 (09:33 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 14 Feb 2007 08:33:14 +0000 (09:33 +0100)
commitd87345bcbc5e636f60df56845a39e00d6ae22911
tree7d6f5cd58d1f54c2f747cbf47edc87b6dc6bef7d
parent8d406a21f39b1f5b30360f0c3a0113dc0bf47d51
[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: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/atm/common.c