diff options
author | 2006-03-14 19:26:30 +0000 | |
---|---|---|
committer | 2006-03-14 19:26:30 +0000 | |
commit | 0020d8af2ce2eb2c7677778e56250f0965ceef0c (patch) | |
tree | 924723cee2851d663dc6768cda14501670ab8747 | |
parent | Prevent double-free. (diff) | |
download | wireguard-openbsd-0020d8af2ce2eb2c7677778e56250f0965ceef0c.tar.xz wireguard-openbsd-0020d8af2ce2eb2c7677778e56250f0965ceef0c.zip |
Return ENXIO when trying to open a non-existent device, not ENODEV.
-rw-r--r-- | sys/dev/isa/aria.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/aria.c b/sys/dev/isa/aria.c index a73d9805f4b..6b5bc65dd19 100644 --- a/sys/dev/isa/aria.c +++ b/sys/dev/isa/aria.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aria.c,v 1.11 2004/06/13 21:49:24 niklas Exp $ */ +/* $OpenBSD: aria.c,v 1.12 2006/03/14 19:26:30 miod Exp $ */ /* * Copyright (c) 1995, 1996 Roland C. Dowdeswell. All rights reserved. @@ -491,7 +491,7 @@ ariaopen(dev, flags) DPRINTF(("ariaopen() called\n")); if (unit >= aria_cd.cd_ndevs) - return ENODEV; + return ENXIO; sc = aria_cd.cd_devs[unit]; |