diff options
author | 2008-01-05 07:33:37 +0000 | |
---|---|---|
committer | 2008-01-05 07:33:37 +0000 | |
commit | 9500689bda07db0924464b680745661687974b5c (patch) | |
tree | 3d8626b1284caaf2d3c42b3e7dfea1056e8965bf /sys/dev/softraid.c | |
parent | lii(4) is a Fast Ethernet chipset and add a history section. (diff) | |
download | wireguard-openbsd-9500689bda07db0924464b680745661687974b5c.tar.xz wireguard-openbsd-9500689bda07db0924464b680745661687974b5c.zip |
return with ENOTTY instead of EINVAL for unknown ioctl requests.
ok krw@ deraadt@ dlg@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index ddfef49b72b..af5cfd1b5dc 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.89 2007/11/27 17:21:52 tedu Exp $ */ +/* $OpenBSD: softraid.c,v 1.90 2008/01/05 07:33:37 brad Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -566,7 +566,7 @@ sr_ioctl(struct device *dev, u_long cmd, caddr_t addr) default: DNPRINTF(SR_D_IOCTL, "invalid ioctl\n"); - rv = EINVAL; + rv = ENOTTY; } rw_exit_write(&sc->sc_lock); |