Page MenuHomeFreeBSD

D28774.diff
No OneTemporary

D28774.diff

diff --git a/sys/net/iflib_clone.c b/sys/net/iflib_clone.c
--- a/sys/net/iflib_clone.c
+++ b/sys/net/iflib_clone.c
@@ -81,13 +81,11 @@
iflib_pseudo_detach(device_t dev)
{
if_ctx_t ctx;
- uint32_t ifc_flags;
ctx = device_get_softc(dev);
- ifc_flags = iflib_get_flags(ctx);
- if ((ifc_flags & IFC_INIT_DONE) == 0)
- return (0);
- return (IFDI_DETACH(ctx));
+ if ((iflib_get_flags(ctx) & IFC_IN_DETACH) == 0)
+ return (EBUSY);
+ return (0);
}
static device_t iflib_pseudodev;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 2:21 AM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14708723
Default Alt Text
D28774.diff (488 B)

Event Timeline