Ticket #3124: patch.3.fbdscompat.diff
File patch.3.fbdscompat.diff, 682 bytes (added by , 16 years ago) |
---|
-
src/libs/compat/freebsd_network/if.c
67 67 void 68 68 if_free(struct ifnet *ifp) 69 69 { 70 // if_index may be uninitialized 71 if (gDeviceNameList[ifp->if_index] == ifp->device_name) { 72 if (ifp->if_index != gDeviceCount - 1) 73 panic("if_free on interior entry \"%s\"", ifp->device_name); 74 75 gDeviceNameList[ifp->if_index] = NULL; 76 gDevices[ifp->if_index] = NULL; 77 gDeviceCount--; 78 } 79 70 80 IF_ADDR_LOCK_DESTROY(ifp); 71 81 if (ifp->if_type == IFT_ETHER) 72 82 _kernel_free(ifp->if_l2com);