Repository navigation
Commit ff49d74
module: initialize module dynamic debug later
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>1 parent e3668dd commit ff49d74
3 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2065 | 2071 | | |
2066 | 2072 | | |
2067 | 2073 | | |
| |||
2124 | 2130 | | |
2125 | 2131 | | |
2126 | 2132 | | |
| 2133 | + | |
| 2134 | + | |
2127 | 2135 | | |
2128 | 2136 | | |
2129 | 2137 | | |
| |||
2476 | 2484 | | |
2477 | 2485 | | |
2478 | 2486 | | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | | - | |
| 2487 | + | |
2483 | 2488 | | |
2484 | 2489 | | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | 2490 | | |
2489 | 2491 | | |
2490 | 2492 | | |
| |||
2526 | 2528 | | |
2527 | 2529 | | |
2528 | 2530 | | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
2529 | 2534 | | |
2530 | 2535 | | |
2531 | 2536 | | |
2532 | | - | |
| 2537 | + | |
2533 | 2538 | | |
2534 | 2539 | | |
2535 | 2540 | | |
| |||
2557 | 2562 | | |
2558 | 2563 | | |
2559 | 2564 | | |
| 2565 | + | |
| 2566 | + | |
2560 | 2567 | | |
2561 | 2568 | | |
2562 | 2569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
0 commit comments