Module Name:    src
Committed By:   riastradh
Date:           Thu Mar  3 05:49:51 UTC 2022

Modified Files:
        src/sys/dev/usb: if_cue.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/dev/usb/if_cue.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/usb/if_cue.c
diff -u src/sys/dev/usb/if_cue.c:1.91 src/sys/dev/usb/if_cue.c:1.92
--- src/sys/dev/usb/if_cue.c:1.91	Sun Mar 15 23:04:50 2020
+++ src/sys/dev/usb/if_cue.c	Thu Mar  3 05:49:51 2022
@@ -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 @@ cue_init_locked(struct ifnet *ifp)
 	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);

Reply via email to