Actually, EINVAL is correct for an unimplemented ioctl. ENOTTY is only

needed for the VIDIOC_*_FMT ioctls.
This commit is contained in:
jmcneill 2008-09-07 19:06:14 +00:00
parent d490ea275a
commit f3728d27ce
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: video.c,v 1.3 2008/09/07 17:13:21 jmcneill Exp $ */ /* $NetBSD: video.c,v 1.4 2008/09/07 19:06:14 jmcneill Exp $ */
/* /*
* Copyright (c) 2008 Patrick Mahoney <pat@polycrystal.org> * Copyright (c) 2008 Patrick Mahoney <pat@polycrystal.org>
@ -36,7 +36,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: video.c,v 1.3 2008/09/07 17:13:21 jmcneill Exp $"); __KERNEL_RCSID(0, "$NetBSD: video.c,v 1.4 2008/09/07 19:06:14 jmcneill Exp $");
#include "video.h" #include "video.h"
#if NVIDEO > 0 #if NVIDEO > 0
@ -1307,7 +1307,7 @@ videoioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
default: default:
DPRINTF(("videoioctl: invalid cmd %s (%lx)\n", DPRINTF(("videoioctl: invalid cmd %s (%lx)\n",
video_ioctl_str(cmd), cmd)); video_ioctl_str(cmd), cmd));
return ENOTTY; return EINVAL;
} }
} }