John Baldwin 6da3131abd Initialize the if_addr mutex in if_alloc() rather than waiting until
if_attach().  This allows ethernet drivers to use it in their routines
to program their MAC filters before ether_ifattach() is called (de(4) is
one such driver).  Also, the if_addr mutex is destroyed in if_free()
rather than if_detach(), so there was another potential bug in that a
driver that failed during attach and called if_free() without having
called ether_ifattach() would have tried to destroy an uninitialized mutex.

Reported by:	Holm Tiffe holm at freibergnet dot de
Discussed with:	rwatson
2005-08-04 14:39:47 +00:00
..
2005-07-11 03:16:23 +00:00
2004-10-05 19:28:52 +00:00
2005-07-25 12:31:43 +00:00
2005-05-06 02:50:00 +00:00
2005-07-25 12:31:43 +00:00
2005-01-11 07:08:15 +00:00