diff options
author | stsp <stsp@openbsd.org> | 2018-10-02 19:49:10 +0000 |
---|---|---|
committer | stsp <stsp@openbsd.org> | 2018-10-02 19:49:10 +0000 |
commit | 947e4cccc8a96cdce5569e46c0b3599b2a80af02 (patch) | |
tree | 53f505bd7415ef3f543c84bf269c68b9c67ae066 /sys/dev/usb/if_umb.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_umb.c')
-rw-r--r-- | sys/dev/usb/if_umb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_umb.c b/sys/dev/usb/if_umb.c index e5a48292f30..567bba697af 100644 --- a/sys/dev/usb/if_umb.c +++ b/sys/dev/usb/if_umb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_umb.c,v 1.20 2018/09/10 17:00:45 gerhard Exp $ */ +/* $OpenBSD: if_umb.c,v 1.21 2018/10/02 19:49:10 stsp Exp $ */ /* * Copyright (c) 2016 genua mbH @@ -686,7 +686,7 @@ umb_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) struct umb_parameter mp; if (usbd_is_dying(sc->sc_udev)) - return EIO; + return ENXIO; s = splnet(); switch (cmd) { |