summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2023-07-07 07:22:18 +0000
committermartin <martin@NetBSD.org>2023-07-07 07:22:18 +0000
commit0a44974a2f83f7d6a0bdffe5725d0be9ea6ece1f (patch)
tree7f840a3f97d04ce3d5f54a704b466371bd39ecd7
parent03b4d9a3e8cdbb1b0efa1f475bf2130c6f4f1cd1 (diff)
Fix locking error when setting the multicast filter to accept all
multicast frames, pointed out by Lwazi Dube.
-rw-r--r--sys/dev/ic/dm9000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/dm9000.c b/sys/dev/ic/dm9000.c
index 316ba0c4428..39ee07fd38d 100644
--- a/sys/dev/ic/dm9000.c
+++ b/sys/dev/ic/dm9000.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dm9000.c,v 1.35 2022/09/25 18:43:32 thorpej Exp $ */
+/* $NetBSD: dm9000.c,v 1.36 2023/07/07 07:22:18 martin Exp $ */
/*
* Copyright (c) 2009 Paul Fleischer
@@ -446,7 +446,7 @@ dme_set_rcvfilt(struct dme_softc *sc)
memset(mchash, 0xff, sizeof(mchash)); /* necessary? */
/* accept all mulicast frame */
rcr |= DM9000_RCR_ALL;
- break;
+ goto update;
}
h = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) & 0x3f;
/* 3(5:3) and 3(2:0) sampling to have uint8_t[8] */