summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_url.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2018-10-02 19:49:10 +0000
committerstsp <stsp@openbsd.org>2018-10-02 19:49:10 +0000
commit947e4cccc8a96cdce5569e46c0b3599b2a80af02 (patch)
tree53f505bd7415ef3f543c84bf269c68b9c67ae066 /sys/dev/usb/if_url.c
parentadd DESCRIPTION and .Ss to the toc; suggested by espie@ (diff)
downloadwireguard-openbsd-947e4cccc8a96cdce5569e46c0b3599b2a80af02.tar.xz
wireguard-openbsd-947e4cccc8a96cdce5569e46c0b3599b2a80af02.zip
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_url.c')
-rw-r--r--sys/dev/usb/if_url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c
index 5438c41c540..06f54e4db8a 100644
--- a/sys/dev/usb/if_url.c
+++ b/sys/dev/usb/if_url.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_url.c,v 1.83 2018/07/03 14:33:43 kevlo Exp $ */
+/* $OpenBSD: if_url.c,v 1.84 2018/10/02 19:49:10 stsp Exp $ */
/* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */
/*
* Copyright (c) 2001, 2002
@@ -995,7 +995,7 @@ url_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
DPRINTF(("%s: %s: enter\n", sc->sc_dev.dv_xname, __func__));
if (usbd_is_dying(sc->sc_udev))
- return (EIO);
+ return ENXIO;
s = splnet();