diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-10-03 03:13:10 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-10-03 03:13:10 +0000 |
commit | bc88e179cfce53de0abe82ca519bfa191ea45a16 (patch) | |
tree | d361ccb98d2b2d25bd5693203f7ba7a98584e83d /sys/dev | |
parent | 8aff4808600d96719958040720ad5758ed4f38d5 (diff) |
Return ENOTTY for unknown ioctl's.
Diffstat (limited to 'sys/dev')
-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); } |