Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb usbnet_ifp() doesn't work before usbnet_attach()...
details: https://anonhg.NetBSD.org/src/rev/f7bb333d8f1b
branches: trunk
changeset: 964807:f7bb333d8f1b
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Aug 18 08:16:34 2019 +0000
description:
usbnet_ifp() doesn't work before usbnet_attach(). avoid it.
diffstat:
sys/dev/usb/if_urndis.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 136373828293 -r f7bb333d8f1b sys/dev/usb/if_urndis.c
--- a/sys/dev/usb/if_urndis.c Sun Aug 18 08:12:36 2019 +0000
+++ b/sys/dev/usb/if_urndis.c Sun Aug 18 08:16:34 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urndis.c,v 1.31 2019/08/15 05:52:23 mrg Exp $ */
+/* $NetBSD: if_urndis.c,v 1.32 2019/08/18 08:16:34 mrg Exp $ */
/* $OpenBSD: if_urndis.c,v 1.31 2011/07/03 15:47:17 matthew Exp $ */
/*
@@ -21,7 +21,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.31 2019/08/15 05:52:23 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.32 2019/08/18 08:16:34 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1044,13 +1044,13 @@
if (un->un_ed[USBNET_ENDPT_RX] == 0 || un->un_ed[USBNET_ENDPT_TX] == 0)
return;
- struct ifnet *ifp = usbnet_ifp(un);
#if 0
ifp->if_watchdog = urndis_watchdog;
#endif
usbnet_attach(un, "urndisdet");
+ struct ifnet *ifp = usbnet_ifp(un);
urndis_init_un(ifp, un);
if (urndis_ctrl_query(un, OID_802_3_PERMANENT_ADDRESS, NULL, 0,
Home |
Main Index |
Thread Index |
Old Index