K 10 svn:author V 2 bz K 8 svn:date V 27 2016-05-26T14:02:41.782379Z K 7 svn:log V 347 Revert the movement of if_afdata_initialized to after we do the actual work and keep it before under the same lock. The possible race condition exists one way or antoher due to unlocking but in if_detach_internal() we do check for if_afdata[] to not be NULL before trying to free, so not extra harm is done. Sponsored by: The FreeBSD Foundation END