View | Details | Raw Unified | Return to bug 230498 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/net/if.c (-1 lines)
Lines 1187-1193 if_detach_internal(struct ifnet *ifp, int vmove, struct if_clone **ifcp) Link Here
1187
		 */
1187
		 */
1188
		free(ifp->if_hw_addr, M_IFADDR);
1188
		free(ifp->if_hw_addr, M_IFADDR);
1189
		ifp->if_hw_addr = NULL;
1189
		ifp->if_hw_addr = NULL;
1190
		ifp->if_addr = NULL;
1191
1190
1192
		/* We can now free link ifaddr. */
1191
		/* We can now free link ifaddr. */
1193
		IF_ADDR_WLOCK(ifp);
1192
		IF_ADDR_WLOCK(ifp);
(-)b/sys/net/rtsock.c (+2 lines)
Lines 1922-1929 sysctl_rtsock(SYSCTL_HANDLER_ARGS) Link Here
1922
			rnh = rt_tables_get_rnh(fib, i);
1922
			rnh = rt_tables_get_rnh(fib, i);
1923
			if (rnh != NULL) {
1923
			if (rnh != NULL) {
1924
				RIB_RLOCK(rnh); 
1924
				RIB_RLOCK(rnh); 
1925
				NET_EPOCH_ENTER();
1925
			    	error = rnh->rnh_walktree(&rnh->head,
1926
			    	error = rnh->rnh_walktree(&rnh->head,
1926
				    sysctl_dumpentry, &w);
1927
				    sysctl_dumpentry, &w);
1928
				NET_EPOCH_EXIT();
1927
				RIB_RUNLOCK(rnh);
1929
				RIB_RUNLOCK(rnh);
1928
			} else if (af != 0)
1930
			} else if (af != 0)
1929
				error = EAFNOSUPPORT;
1931
				error = EAFNOSUPPORT;

Return to bug 230498