diff options
author | jkim <jkim@FreeBSD.org> | 2010-07-22 18:44:40 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-07-22 18:44:40 +0000 |
commit | 9fdab3dd154ee91e1d08bbea36e9c641cb1925bd (patch) | |
tree | d1edbd9cadacf2dff6a3f8dcc241afb35cdc0b2d | |
parent | 00c55fe8c707bce5a796f27632fb0e96d4ad7cf5 (diff) | |
download | FreeBSD-src-9fdab3dd154ee91e1d08bbea36e9c641cb1925bd.zip FreeBSD-src-9fdab3dd154ee91e1d08bbea36e9c641cb1925bd.tar.gz |
Fix an obvious typo from r1.1. We were acquiring an exclusive writer lock
regardless of the given flags.
MFC after: 3 days
-rw-r--r-- | sys/net/if_llatbl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_llatbl.c b/sys/net/if_llatbl.c index c9b41f9..8e193c1 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); |