summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sn/if_sn.c')
-rw-r--r--sys/dev/sn/if_sn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c
index b4dbd2e..bb3fc5e 100644
--- a/sys/dev/sn/if_sn.c
+++ b/sys/dev/sn/if_sn.c
@@ -233,8 +233,8 @@ sn_detach(device_t dev)
snstop(sc);
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
ether_ifdetach(ifp);
- if_free(ifp);
sn_deactivate(dev);
+ if_free(ifp);
SN_LOCK_DESTROY(sc);
return 0;
}
OpenPOWER on IntegriCloud