Commit 84ff602e authored by Daniel Walker's avatar Daniel Walker Committed by David S. Miller
Browse files

[ATM]: Fix for crash in adummy_init()

This was reported by Ingo Molnar here,

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: default avatarDaniel Walker <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarDavid S. Miller <>
parent f5a6e01c
......@@ -816,7 +816,8 @@ static void __exit atm_exit(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment