diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-07-22 18:44:40 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-07-22 18:44:40 +0000 |
commit | 82040afcf30e97732bc58034b19724ce010fa044 (patch) | |
tree | d1edbd9cadacf2dff6a3f8dcc241afb35cdc0b2d | |
parent | 90104f5413ef34d793f299752aef4770fe2a7bfc (diff) | |
download | src-82040afcf30e97732bc58034b19724ce010fa044.tar.gz src-82040afcf30e97732bc58034b19724ce010fa044.zip |
Fix an obvious typo from r1.1. We were acquiring an exclusive writer lock
regardless of the given flags.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=210383
-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 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); |