Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Don't return an error in urndis_init if IFF_RUNN...



details:   https://anonhg.NetBSD.org/src/rev/c8691823c1f5
branches:  trunk
changeset: 797476:c8691823c1f5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jul 19 08:38:28 2014 +0000

description:
Don't return an error in urndis_init if IFF_RUNNING is set on entry.

That is, fix my mistake in handling PR/48964

diffstat:

 sys/dev/usb/if_urndis.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e400a3e1ec35 -r c8691823c1f5 sys/dev/usb/if_urndis.c
--- a/sys/dev/usb/if_urndis.c   Sat Jul 19 06:12:24 2014 +0000
+++ b/sys/dev/usb/if_urndis.c   Sat Jul 19 08:38:28 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urndis.c,v 1.8 2014/07/05 11:13:13 skrll Exp $ */
+/*     $NetBSD: if_urndis.c,v 1.9 2014/07/19 08:38:28 skrll 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.8 2014/07/05 11:13:13 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.9 2014/07/19 08:38:28 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1033,7 +1033,7 @@
        sc = ifp->if_softc;
 
        if (ifp->if_flags & IFF_RUNNING)
-               return EBUSY;
+               return 0;
 
        err = urndis_ctrl_init(sc);
        if (err != RNDIS_STATUS_SUCCESS)



Home | Main Index | Thread Index | Old Index