]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
module: initialize module dynamic debug later
authorYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 3 Jul 2010 03:07:35 +0000 (13:07 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 Jul 2010 03:17:22 +0000 (20:17 -0700)
We should initialize the module dynamic debug datastructures
only after determining that the module is not loaded yet. This
fixes a bug that introduced in 2.6.35-rc2, where when a trying
to load a module twice, we also load it's dynamic printing data
twice which causes all sorts of nasty issues. Also handle
the dynamic debug cleanup later on failure.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (removed a #ifdef)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found