Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/ixgbe CID-1427719: Integer handling issues (BAD...



details:   https://anonhg.NetBSD.org/src/rev/4fe33ce0690f
branches:  trunk
changeset: 829335:4fe33ce0690f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Jan 26 09:07:46 2018 +0000

description:
CID-1427719: Integer handling issues  (BAD_SHIFT). Print bus/slot info
correctly on 82599_SFP_SF_QP(DID 0x154a) and 82599_QSFP_SF_QP(DID 0x1558).

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 26f477da216f -r 4fe33ce0690f sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Fri Jan 26 08:09:53 2018 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Fri Jan 26 09:07:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.119 2017/12/28 06:10:01 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.120 2018/01/26 09:07:46 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -2332,8 +2332,8 @@
        }
        /* ...and read the Link Status Register */
        link = pci_conf_read(adapter->osdep.pc, adapter->osdep.tag,
-           offset + PCIE_LCSR);
-       ixgbe_set_pci_config_data_generic(hw, link >> 16);
+           offset + PCIE_LCSR) >> 16;
+       ixgbe_set_pci_config_data_generic(hw, link);
 
 display:
        device_printf(dev, "PCI Express Bus: Speed %s Width %s\n",



Home | Main Index | Thread Index | Old Index