Add IF_AFDATA_WLOCK_ASSERT() in case lla_lookup() is called with

LLE_CREATE flag.

MFC after:	1 week
This commit is contained in:
ae 2014-01-03 02:32:05 +00:00
parent a7ae566647
commit 941bb837f9
2 changed files with 2 additions and 0 deletions

View File

@ -1127,6 +1127,7 @@ in_lltable_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3add
#endif
if (!(flags & LLE_CREATE))
return (NULL);
IF_AFDATA_WLOCK_ASSERT(ifp);
/*
* A route that covers the given address must have
* been installed 1st because we are doing a resolution,

View File

@ -2332,6 +2332,7 @@ in6_lltable_lookup(struct lltable *llt, u_int flags,
if (lle == NULL) {
if (!(flags & LLE_CREATE))
return (NULL);
IF_AFDATA_WLOCK_ASSERT(ifp);
/*
* A route that covers the given address must have
* been installed 1st because we are doing a resolution,