Fix an obvious typo from r1.1. We were acquiring an exclusive writer lock

regardless of the given flags.

MFC after:	3 days
This commit is contained in:
Jung-uk Kim 2010-07-22 18:44:40 +00:00
parent 90104f5413
commit 82040afcf3

View File

@ -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);