Bill Paul b7f6c65f7c Grrrr. Fix a really lame bug that I tripped over while testing my miibus
stuff: unregister_methods() is horribly broken. The idea, if I'm not mistaken,
is that the refcount on a method is decremented, and only when it reaches
zero is the method freed. However desc->method is set to NULL unconditionally
regardless of the refcount, which means the method pointer is trashed the
first time the method is deallocated. The obvious detrimental effect is
that memory is leaked. The not so obvious effect is that when you call
unregister_method() the second time on the same method, you get a NULL
pointer dereference and a panic.

Now I can successfully unload network device drivers and the miibus module
without crashing the system.

*sigh*
1999-08-14 05:11:01 +00:00
..
1999-08-11 20:35:38 +00:00
1999-06-07 20:37:29 +00:00
1999-07-21 18:02:27 +00:00
1999-04-30 06:51:51 +00:00
1999-05-20 00:00:58 +00:00
1999-04-27 11:18:52 +00:00
1999-07-18 13:40:11 +00:00
1999-06-17 23:42:45 +00:00
1999-05-31 11:29:30 +00:00
1999-08-13 10:52:22 +00:00
1999-06-17 23:42:45 +00:00
1999-05-31 11:29:30 +00:00
1999-08-08 20:24:58 +00:00
1999-08-13 10:10:12 +00:00
1999-06-17 23:42:45 +00:00
1999-08-13 11:22:48 +00:00