From 0369b604720505cf2e1e69a5b55dccf7ecbdbd09 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Sun, 28 Nov 2010 01:00:39 +0000 Subject: [PATCH] Do not reinitialize controller if it's already running. --- sys/dev/usb/net/if_axe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/usb/net/if_axe.c b/sys/dev/usb/net/if_axe.c index 0c7344c524f..8b30c5c4a88 100644 --- a/sys/dev/usb/net/if_axe.c +++ b/sys/dev/usb/net/if_axe.c @@ -1019,6 +1019,9 @@ axe_init(struct usb_ether *ue) AXE_LOCK_ASSERT(sc, MA_OWNED); + if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0) + return; + /* Cancel pending I/O */ axe_stop(ue);