Module Name:    src
Committed By:   msaitoh
Date:           Thu Jun 20 15:25:28 UTC 2019

Modified Files:
        src/sys/dev/pci: if_txp.c

Log Message:
 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.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/dev/pci/if_txp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_txp.c
diff -u src/sys/dev/pci/if_txp.c:1.57 src/sys/dev/pci/if_txp.c:1.58
--- src/sys/dev/pci/if_txp.c:1.57	Wed May 29 10:07:29 2019
+++ src/sys/dev/pci/if_txp.c	Thu Jun 20 15:25:28 2019
@@ -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 @@ txp_attach(device_t parent, device_t sel
 	    &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];

Reply via email to