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 panic on attach. This bug was added in rev. ...



details:   https://anonhg.NetBSD.org/src/rev/acbbda3b0291
branches:  trunk
changeset: 999842:acbbda3b0291
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jun 20 15:25:28 2019 +0000

description:
Fix panic on attach. This bug was added in rev. 1.56. I think it's not
required to call txp_set_filter() in the attach function.

diffstat:

 sys/dev/pci/if_txp.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 88b611b875d0 -r acbbda3b0291 sys/dev/pci/if_txp.c
--- a/sys/dev/pci/if_txp.c      Thu Jun 20 14:33:04 2019 +0000
+++ b/sys/dev/pci/if_txp.c      Thu Jun 20 15:25:28 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_txp.c,v 1.57 2019/05/29 10:07:29 msaitoh Exp $ */
+/* $NetBSD: if_txp.c,v 1.58 2019/06/20 15:25:28 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2001
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_txp.c,v 1.57 2019/05/29 10:07:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_txp.c,v 1.58 2019/06/20 15:25:28 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -276,8 +276,6 @@
            &p1, &p2, NULL, 1))
                goto cleanupintr;
 
-       txp_set_filter(sc);
-
        p1 = htole16(p1);
        enaddr[0] = ((uint8_t *)&p1)[1];
        enaddr[1] = ((uint8_t *)&p1)[0];



Home | Main Index | Thread Index | Old Index