aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lge
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-08-03 00:18:35 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-08-03 00:18:35 +0000
commit13b203d0d78cc08a7e0da8e8d5eb8c1a5d94ab69 (patch)
tree9a4e586ffbcd1450917ee5e388a4e1eb38254e32 /sys/dev/lge
parentbccb41014af4667b1cf2878456f5a8a854acf1f7 (diff)
Notes
Diffstat (limited to 'sys/dev/lge')
-rw-r--r--sys/dev/lge/if_lge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c
index 9c7e65daabf2..5fa639141f8e 100644
--- a/sys/dev/lge/if_lge.c
+++ b/sys/dev/lge/if_lge.c
@@ -390,6 +390,7 @@ lge_setmulti(sc)
CSR_WRITE_4(sc, LGE_MAR1, 0);
/* now program new ones */
+ IF_ADDR_LOCK(ifp);
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
@@ -400,6 +401,7 @@ lge_setmulti(sc)
else
hashes[1] |= (1 << (h - 32));
}
+ IF_ADDR_UNLOCK(ifp);
CSR_WRITE_4(sc, LGE_MAR0, hashes[0]);
CSR_WRITE_4(sc, LGE_MAR1, hashes[1]);