From c4635301e779fcd396bca3778a7ec13108f56408 Mon Sep 17 00:00:00 2001 From: glebius Date: Mon, 19 Sep 2005 16:27:22 +0000 Subject: Drop current rtentry lock before calling rt_getifa(). This fixes a LOR and a possible recursive use of rtentry mutex. PR: kern/69356 Reviewed by: sam --- sys/net/rtsock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net') diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index cceeb19..3942561 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -496,10 +496,10 @@ route_output(struct mbuf *m, struct socket *so) (info.rti_info[RTAX_IFA] != NULL && !sa_equal(info.rti_info[RTAX_IFA], rt->rt_ifa->ifa_addr))) { - if ((error = rt_getifa(&info)) != 0) { - RT_UNLOCK(rt); + RT_UNLOCK(rt); + if ((error = rt_getifa(&info)) != 0) senderr(error); - } + RT_LOCK(rt); } if (info.rti_info[RTAX_GATEWAY] != NULL && (error = rt_setgate(rt, rt_key(rt), -- cgit v1.1