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 a bug that the TPH ST Table is wrongly decod...
details: https://anonhg.NetBSD.org/src/rev/5350cf50d393
branches: trunk
changeset: 810935:5350cf50d393
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Oct 02 07:04:17 2015 +0000
description:
Fix a bug that the TPH ST Table is wrongly decoded. Found by llvm.
diffstat:
sys/dev/pci/pci_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e7c72879d43b -r 5350cf50d393 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Fri Oct 02 05:33:07 2015 +0000
+++ b/sys/dev/pci/pci_subr.c Fri Oct 02 07:04:17 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.135 2015/10/02 05:22:53 msaitoh Exp $ */
+/* $NetBSD: pci_subr.c,v 1.136 2015/10/02 07:04:17 msaitoh Exp $ */
/*
* Copyright (c) 1997 Zubin D. Dittia. All rights reserved.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.135 2015/10/02 05:22:53 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.136 2015/10/02 07:04:17 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -2710,7 +2710,7 @@
for (i = 0; i < size ; i += 2) {
reg = regs[o2i(extcapoff + PCI_TPH_REQ_STTBL + i / 2)];
for (j = 0; j < 2 ; j++) {
- uint16_t entry = reg;
+ uint32_t entry = reg;
if (j != 0)
entry >>= 16;
Home |
Main Index |
Thread Index |
Old Index