Module Name: src
Committed By: msaitoh
Date: Tue May 28 09:24:34 UTC 2019
Modified Files:
src/sys/dev/pci: if_ale.c
Log Message:
Add missing ETHER_LOCK().
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/if_ale.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_ale.c
diff -u src/sys/dev/pci/if_ale.c:1.31 src/sys/dev/pci/if_ale.c:1.32
--- src/sys/dev/pci/if_ale.c:1.31 Tue May 28 07:41:49 2019
+++ src/sys/dev/pci/if_ale.c Tue May 28 09:24:33 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ale.c,v 1.31 2019/05/28 07:41:49 msaitoh Exp $ */
+/* $NetBSD: if_ale.c,v 1.32 2019/05/28 09:24:33 msaitoh Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <[email protected]>
@@ -32,7 +32,7 @@
/* Driver for Atheros AR8121/AR8113/AR8114 PCIe Ethernet. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.31 2019/05/28 07:41:49 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.32 2019/05/28 09:24:33 msaitoh Exp $");
#include "vlan.h"
@@ -2008,6 +2008,7 @@ ale_rxfilter(struct ale_softc *sc)
/* Program new filter. */
memset(mchash, 0, sizeof(mchash));
+ ETHER_LOCK(ec);
ETHER_FIRST_MULTI(step, ec, enm);
while (enm != NULL) {
crc = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN);