Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add missing ETHER_LOCK().



details:   https://anonhg.NetBSD.org/src/rev/8dd53a0e0312
branches:  trunk
changeset: 456810:8dd53a0e0312
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue May 28 09:24:33 2019 +0000

description:
Add missing ETHER_LOCK().

diffstat:

 sys/dev/pci/if_ale.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7d5dcdb49f23 -r 8dd53a0e0312 sys/dev/pci/if_ale.c
--- a/sys/dev/pci/if_ale.c      Tue May 28 08:59:33 2019 +0000
+++ b/sys/dev/pci/if_ale.c      Tue May 28 09:24:33 2019 +0000
@@ -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 <yongari%FreeBSD.org@localhost>
@@ -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 @@
                /* 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);



Home | Main Index | Thread Index | Old Index