netif/if_lagg: Fix panic on MOD_UNLOAD
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Thu, 26 Feb 2015 12:39:16 +0000 (12:39 +0000)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Thu, 26 Feb 2015 12:39:16 +0000 (12:39 +0000)
Remove one instance of if_clone_detach being called.

Reported-By: bycn82 <bycn82@gmail.com>
sys/net/lagg/if_lagg.c

index 5fb022c..9f21822 100644 (file)
@@ -222,7 +222,6 @@ lagg_modevent(module_t mod, int type, void *data)
        case MOD_UNLOAD:
                EVENTHANDLER_DEREGISTER(ifnet_departure_event,
                    lagg_detach_cookie);
-               if_clone_detach(&lagg_cloner);
                lagg_input_p = NULL;
                if_clone_detach(&lagg_cloner);
                lockuninit(&lagg_list_lock);