summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevlo <kevlo@openbsd.org>2019-11-19 06:34:10 +0000
committerkevlo <kevlo@openbsd.org>2019-11-19 06:34:10 +0000
commitc66c1de82b5741730a7f0dd72bc82182b9f8e236 (patch)
treec181af7a39579d60119355027b7c8ab1ed971348
parentDon't assign ifp twice in the re_txeof(). (diff)
downloadwireguard-openbsd-c66c1de82b5741730a7f0dd72bc82182b9f8e236.tar.xz
wireguard-openbsd-c66c1de82b5741730a7f0dd72bc82182b9f8e236.zip
Set isr to the correct value (sc->rl_intrs).
ok deraadt@
-rw-r--r--sys/dev/ic/re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index ae9494d56c2..05e37edecc7 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.203 2019/11/19 06:32:46 kevlo Exp $ */
+/* $OpenBSD: re.c,v 1.204 2019/11/19 06:34:10 kevlo Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -1953,7 +1953,7 @@ re_init(struct ifnet *ifp)
* Enable interrupts.
*/
re_setup_intr(sc, 1, sc->rl_imtype);
- CSR_WRITE_2(sc, RL_ISR, sc->rl_imtype);
+ CSR_WRITE_2(sc, RL_ISR, sc->rl_intrs);
/* Start RX/TX process. */
CSR_WRITE_4(sc, RL_MISSEDPKT, 0);