Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fix handling of RTKQ_IM_HW quirk, the check was i...



details:   https://anonhg.NetBSD.org/src/rev/853e69bf2dee
branches:  trunk
changeset: 447431:853e69bf2dee
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Thu Jan 10 23:01:57 2019 +0000

description:
Fix handling of RTKQ_IM_HW quirk, the check was inverted.

Found by tho%useless-ficus.net@localhost, thanks.
Fixes PR/53858.

diffstat:

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

diffs (27 lines):

diff -r eedd7537e737 -r 853e69bf2dee sys/dev/ic/rtl8169.c
--- a/sys/dev/ic/rtl8169.c      Thu Jan 10 22:13:07 2019 +0000
+++ b/sys/dev/ic/rtl8169.c      Thu Jan 10 23:01:57 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtl8169.c,v 1.155 2018/11/13 10:51:49 mlelstv Exp $    */
+/*     $NetBSD: rtl8169.c,v 1.156 2019/01/10 23:01:57 mlelstv Exp $    */
 
 /*
  * Copyright (c) 1997, 1998-2003
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.155 2018/11/13 10:51:49 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.156 2019/01/10 23:01:57 mlelstv Exp $");
 /* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */
 
 /*
@@ -1949,7 +1949,7 @@
         */
        defer = 128000;
 
-       if ((sc->sc_quirk & RTKQ_IM_HW) == 0) {
+       if ((sc->sc_quirk & RTKQ_IM_HW) != 0) {
                period = 1;
                defer = 0;
        } else if ((sc->sc_quirk & RTKQ_PCIE) != 0) {



Home | Main Index | Thread Index | Old Index