Author: jkim
Date: Thu Jul 22 18:44:40 2010
New Revision: 210383
URL: http://svn.freebsd.org/changeset/base/210383

Log:
  Fix an obvious typo from r1.1.  We were acquiring an exclusive writer lock
  regardless of the given flags.
  
  MFC after:    3 days

Modified:
  head/sys/net/if_llatbl.c

Modified: head/sys/net/if_llatbl.c
==============================================================================
--- head/sys/net/if_llatbl.c    Thu Jul 22 18:33:10 2010        (r210382)
+++ head/sys/net/if_llatbl.c    Thu Jul 22 18:44:40 2010        (r210383)
@@ -323,7 +323,7 @@ lla_rt_output(struct rt_msghdr *rtm, str
        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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to