From 82040afcf30e97732bc58034b19724ce010fa044 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 22 Jul 2010 18:44:40 +0000 Subject: [PATCH] Fix an obvious typo from r1.1. We were acquiring an exclusive writer lock regardless of the given flags. MFC after: 3 days --- sys/net/if_llatbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_llatbl.c b/sys/net/if_llatbl.c index c9b41f9bd376..8e193c15e4cf 100644 --- a/sys/net/if_llatbl.c +++ b/sys/net/if_llatbl.c @@ -323,7 +323,7 @@ lla_rt_output(struct rt_msghdr *rtm, struct rt_addrinfo *info) LLTABLE_RUNLOCK(); KASSERT(llt != NULL, ("Yep, ugly hacks are bad\n")); - if (flags && LLE_CREATE) + if (flags & LLE_CREATE) flags |= LLE_EXCLUSIVE; IF_AFDATA_LOCK(ifp);