Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fill out struct ifnet::if_stop, which is require...



details:   https://anonhg.NetBSD.org/src/rev/419bd75d3dff
branches:  trunk
changeset: 760194:419bd75d3dff
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Dec 30 18:27:01 2010 +0000

description:
Fill out struct ifnet::if_stop, which is required for network class devices
in pmf(9). Fixes the panic reported in PR # kern/44296.

diffstat:

 sys/dev/pci/if_iwn.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 4abc8ada809f -r 419bd75d3dff sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Thu Dec 30 17:06:17 2010 +0000
+++ b/sys/dev/pci/if_iwn.c      Thu Dec 30 18:27:01 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwn.c,v 1.50 2010/08/29 07:00:13 christos Exp $     */
+/*     $NetBSD: if_iwn.c,v 1.51 2010/12/30 18:27:01 jruoho Exp $       */
 /*     $OpenBSD: if_iwn.c,v 1.96 2010/05/13 09:25:03 damien Exp $      */
 
 /*-
@@ -22,7 +22,7 @@
  * adapters.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.50 2010/08/29 07:00:13 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.51 2010/12/30 18:27:01 jruoho Exp $");
 
 #define IWN_USE_RBUF   /* Use local storage for RX */
 #undef IWN_HWCRYPTO    /* XXX does not even compile yet */
@@ -611,6 +611,7 @@
        ifp->if_init = iwn_init;
        ifp->if_ioctl = iwn_ioctl;
        ifp->if_start = iwn_start;
+       ifp->if_stop = iwn_stop;
        ifp->if_watchdog = iwn_watchdog;
        IFQ_SET_READY(&ifp->if_snd);
        memcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);



Home | Main Index | Thread Index | Old Index