svn commit: r210540 - stable/8/sys/net

Jung-uk Kim jkim at FreeBSD.org
Tue Jul 27 14:32:52 UTC 2010


Author: jkim
Date: Tue Jul 27 14:32:51 2010
New Revision: 210540
URL: http://svn.freebsd.org/changeset/base/210540

Log:
  MFC:	r210383
  
  Fix an obvious typo.  We were acquiring an exclusive writer lock regardless
  of the given flags.

Modified:
  stable/8/sys/net/if_llatbl.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/net/if_llatbl.c
==============================================================================
--- stable/8/sys/net/if_llatbl.c	Tue Jul 27 14:31:39 2010	(r210539)
+++ stable/8/sys/net/if_llatbl.c	Tue Jul 27 14:32:51 2010	(r210540)
@@ -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);


More information about the svn-src-all mailing list