Date: Thu, 22 Jul 2010 18:44:41 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210383 - head/sys/net Message-ID: <201007221844.o6MIifvk030053@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007221844.o6MIifvk030053>