Module Name:    src
Committed By:   cegger
Date:           Tue Apr 28 11:49:15 UTC 2009

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

Log Message:
on detach, deregister from pmf


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/if_ale.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_ale.c
diff -u src/sys/dev/pci/if_ale.c:1.2 src/sys/dev/pci/if_ale.c:1.3
--- src/sys/dev/pci/if_ale.c:1.2	Sat Apr 25 17:04:40 2009
+++ src/sys/dev/pci/if_ale.c	Tue Apr 28 11:49:15 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ale.c,v 1.2 2009/04/25 17:04:40 tsutsui Exp $	*/
+/*	$NetBSD: if_ale.c,v 1.3 2009/04/28 11:49:15 cegger Exp $	*/
 
 /*-
  * Copyright (c) 2008, Pyun YongHyeon <yong...@freebsd.org>
@@ -32,7 +32,7 @@
 /* Driver for Atheros AR8121/AR8113/AR8114 PCIe Ethernet. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.2 2009/04/25 17:04:40 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.3 2009/04/28 11:49:15 cegger Exp $");
 
 #include "bpfilter.h"
 #include "vlan.h"
@@ -577,6 +577,7 @@
 	struct ifnet *ifp = &sc->sc_ec.ec_if;
 	int s;
 
+	pmf_device_deregister(self);
 	s = splnet();
 	ale_stop(ifp, 0);
 	splx(s);

Reply via email to