Page MenuHomeFreeBSD

D28774.id84203.diff
No OneTemporary

D28774.id84203.diff

Index: sys/net/iflib_clone.c
===================================================================
--- sys/net/iflib_clone.c
+++ 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
Mon, Nov 18, 8:46 AM (6 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14694387
Default Alt Text
D28774.id84203.diff (521 B)

Event Timeline