diff options
author | 2018-10-02 19:49:10 +0000 | |
---|---|---|
committer | 2018-10-02 19:49:10 +0000 | |
commit | 947e4cccc8a96cdce5569e46c0b3599b2a80af02 (patch) | |
tree | 53f505bd7415ef3f543c84bf269c68b9c67ae066 /sys/dev/usb/if_url.c | |
parent | add DESCRIPTION and .Ss to the toc; suggested by espie@ (diff) | |
download | wireguard-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.c | 4 |
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(); |