diff options
author | 2008-10-03 03:13:09 +0000 | |
---|---|---|
committer | 2008-10-03 03:13:09 +0000 | |
commit | 41edb558292cd518ea928e8474e7ba5fdeb839a6 (patch) | |
tree | a6450d3c479c0a28472a792d8f04cb910f60b0d9 | |
parent | Return ENOTTY for unknown ioctl's. (diff) | |
download | wireguard-openbsd-41edb558292cd518ea928e8474e7ba5fdeb839a6.tar.xz wireguard-openbsd-41edb558292cd518ea928e8474e7ba5fdeb839a6.zip |
Return ENOTTY for unknown ioctl's.
-rw-r--r-- | sys/dev/usb/if_upl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c index 3f3cc514eab..8986def4f4f 100644 --- a/sys/dev/usb/if_upl.c +++ b/sys/dev/usb/if_upl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_upl.c,v 1.41 2008/06/26 05:42:18 ray Exp $ */ +/* $OpenBSD: if_upl.c,v 1.42 2008/10/03 03:13:09 brad Exp $ */ /* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -869,12 +869,11 @@ upl_ioctl(struct ifnet *ifp, u_long command, caddr_t data) error = 0; break; default: - error = EINVAL; + error = ENOTTY; break; } splx(s); - return (error); } |