From f2edd835a70c8c4dbde8caf8d9f28cc02446c2c2 Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 9 Aug 2005 08:39:56 +0000 Subject: In preparation for fixing races in ARP (and probably in other L2/L3 mappings) make rt_check() return a locked rtentry. --- sys/net/if_fwsubr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/if_fwsubr.c') diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c index b3884b5..baff6ec 100644 --- a/sys/net/if_fwsubr.c +++ b/sys/net/if_fwsubr.c @@ -105,6 +105,7 @@ firewire_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, error = rt_check(&rt, &rt0, dst); if (error) goto bad; + RT_UNLOCK(rt); /* * For unicast, we make a tag to store the lladdr of the -- cgit v1.1