Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci fix potentially bug
details: https://anonhg.NetBSD.org/src/rev/a61114bc6710
branches: trunk
changeset: 812576:a61114bc6710
user: knakahara <knakahara%NetBSD.org@localhost>
date: Tue Dec 22 02:17:21 2015 +0000
description:
fix potentially bug
diffstat:
sys/dev/pci/if_wm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 356a13964b9d -r a61114bc6710 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Tue Dec 22 02:10:25 2015 +0000
+++ b/sys/dev/pci/if_wm.c Tue Dec 22 02:17:21 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.384 2015/12/22 02:10:25 knakahara Exp $ */
+/* $NetBSD: if_wm.c,v 1.385 2015/12/22 02:17:21 knakahara Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.384 2015/12/22 02:10:25 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.385 2015/12/22 02:17:21 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -5637,7 +5637,7 @@
if (sc->sc_type < WM_T_82543) {
txq->txq_tdt_reg = WMREG_OLD_TDT;
} else {
- txq->txq_tdt_reg = WMREG_TDT(0);
+ txq->txq_tdt_reg = WMREG_TDT(txq->txq_id);
}
wm_init_tx_descs(sc, txq);
Home |
Main Index |
Thread Index |
Old Index