summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_urndis.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2018-10-02 19:49:11 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2018-10-02 19:49:11 +0000
commite432202b1919bb33356ba6ef483f333607327326 (patch)
treefaa047eadecf4f521eabe52f67c9b599fc9efe76 /sys/dev/usb/if_urndis.c
parent7f6ab2593a0a117bafcd90a558c9d495f0071057 (diff)
Make some USB ioctls return ENXIO, instead of EIO, if usbd_is_dying().
Brings us one step closer towards making this condition's error code consistent across all USB drivers. Patch by Moritz Buhl ok mpi@ bluhm@
Diffstat (limited to 'sys/dev/usb/if_urndis.c')
-rw-r--r--sys/dev/usb/if_urndis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_urndis.c b/sys/dev/usb/if_urndis.c
index 5d148da4ab5..f6b3c7bad9d 100644
--- a/sys/dev/usb/if_urndis.c
+++ b/sys/dev/usb/if_urndis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_urndis.c,v 1.67 2017/07/19 16:31:56 mikeb Exp $ */
+/* $OpenBSD: if_urndis.c,v 1.68 2018/10/02 19:49:10 stsp Exp $ */
/*
* Copyright (c) 2010 Jonathan Armani <armani@openbsd.org>
@@ -1010,7 +1010,7 @@ urndis_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
int s, error = 0;
if (usbd_is_dying(sc->sc_udev))
- return (EIO);
+ return ENXIO;
s = splnet();