Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb cue(4): Return real error code, not -1, on init ...



details:   https://anonhg.NetBSD.org/src/rev/24e29811fc6f
branches:  trunk
changeset: 362507:24e29811fc6f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Mar 03 05:49:51 2022 +0000

description:
cue(4): Return real error code, not -1, on init when detaching.

diffstat:

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

diffs (27 lines):

diff -r 440404044dfc -r 24e29811fc6f sys/dev/usb/if_cue.c
--- a/sys/dev/usb/if_cue.c      Thu Mar 03 05:49:44 2022 +0000
+++ b/sys/dev/usb/if_cue.c      Thu Mar 03 05:49:51 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_cue.c,v 1.91 2020/03/15 23:04:50 thorpej Exp $      */
+/*     $NetBSD: if_cue.c,v 1.92 2022/03/03 05:49:51 riastradh Exp $    */
 
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.91 2020/03/15 23:04:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.92 2022/03/03 05:49:51 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -622,7 +622,7 @@
        DPRINTFN(10,("%s: %s: enter\n", device_xname(un->un_dev),__func__));
 
        if (usbnet_isdying(un))
-               return -1;
+               return ENXIO;
 
        /* Cancel pending I/O */
        usbnet_stop(un, ifp, 1);



Home | Main Index | Thread Index | Old Index