Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Never return ENXIO in ioctl anymore. We don't have a...
details: https://anonhg.NetBSD.org/src/rev/c8fc4087f140
branches: trunk
changeset: 787288:c8fc4087f140
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 09 13:26:25 2013 +0000
description:
Never return ENXIO in ioctl anymore. We don't have a fixed number of vnd's
configured.
diffstat:
sys/dev/vnd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0441738638b3 -r c8fc4087f140 sys/dev/vnd.c
--- a/sys/dev/vnd.c Sun Jun 09 13:25:40 2013 +0000
+++ b/sys/dev/vnd.c Sun Jun 09 13:26:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.224 2013/06/03 21:01:18 christos Exp $ */
+/* $NetBSD: vnd.c,v 1.225 2013/06/09 13:26:25 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.224 2013/06/03 21:01:18 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.225 2013/06/09 13:26:25 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -953,7 +953,7 @@
vnd = device_lookup_private(&vnd_cd, *un);
if (vnd == NULL)
- return (*un >= vnd_cd.cd_ndevs) ? ENXIO : -1;
+ return -1;
if ((vnd->sc_flags & VNF_INITED) == 0)
return -1;
Home |
Main Index |
Thread Index |
Old Index