Module Name:    src
Committed By:   christos
Date:           Mon Nov  9 17:41:24 UTC 2015

Modified Files:
        src/sys/dev: vnd.c

Log Message:
Return ENXIO if the get ioctl exceeds the number of configured devices.
XXX: pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.250 -r1.251 src/sys/dev/vnd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/vnd.c
diff -u src/sys/dev/vnd.c:1.250 src/sys/dev/vnd.c:1.251
--- src/sys/dev/vnd.c:1.250	Mon Nov  9 11:54:26 2015
+++ src/sys/dev/vnd.c	Mon Nov  9 12:41:24 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: vnd.c,v 1.250 2015/11/09 16:54:26 christos Exp $	*/
+/*	$NetBSD: vnd.c,v 1.251 2015/11/09 17:41:24 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.250 2015/11/09 16:54:26 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.251 2015/11/09 17:41:24 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_vnd.h"
@@ -1067,11 +1067,9 @@ vndioctl_get(struct lwp *l, void *data, 
 	int error;
 
 	KASSERT(l);
-#ifdef notyet
-	/* Current userland code does not handle this */
+
 	if (*(int *)data >= vnd_cd.cd_ndevs)
 		return ENXIO;
-#endif
 
 	switch (error = vnd_cget(l, unit, (int *)data, va)) {
 	case -1:

Reply via email to