Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat Add a default case, don't call sys_ioctl() with a...
details: https://anonhg.NetBSD.org/src/rev/6d05613034c3
branches: trunk
changeset: 453711:6d05613034c3
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Aug 23 12:09:17 2019 +0000
description:
Add a default case, don't call sys_ioctl() with an uninitialized 'com'
argument.
diffstat:
sys/compat/linux/common/linux_termios.c | 5 +++--
sys/compat/linux32/common/linux32_termios.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r 31a1e8cf86b1 -r 6d05613034c3 sys/compat/linux/common/linux_termios.c
--- a/sys/compat/linux/common/linux_termios.c Fri Aug 23 11:19:39 2019 +0000
+++ b/sys/compat/linux/common/linux_termios.c Fri Aug 23 12:09:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_termios.c,v 1.37 2013/12/27 16:58:50 njoly Exp $ */
+/* $NetBSD: linux_termios.c,v 1.38 2019/08/23 12:09:17 maxv Exp $ */
/*-
* Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_termios.c,v 1.37 2013/12/27 16:58:50 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_termios.c,v 1.38 2019/08/23 12:09:17 maxv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ptm.h"
@@ -259,6 +259,7 @@
case LINUX_TIOCLINUX_READMOUSE:
case LINUX_TIOCLINUX_VESABLANK:
case LINUX_TIOCLINUX_CURCONS: /* could use VT_GETACTIVE */
+ default:
error = EINVAL;
goto out;
}
diff -r 31a1e8cf86b1 -r 6d05613034c3 sys/compat/linux32/common/linux32_termios.c
--- a/sys/compat/linux32/common/linux32_termios.c Fri Aug 23 11:19:39 2019 +0000
+++ b/sys/compat/linux32/common/linux32_termios.c Fri Aug 23 12:09:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_termios.c,v 1.14 2008/11/19 18:36:04 ad Exp $ */
+/* $NetBSD: linux32_termios.c,v 1.15 2019/08/23 12:09:18 maxv Exp $ */
/*-
* Copyright (c) 1995-2006, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_termios.c,v 1.14 2008/11/19 18:36:04 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_termios.c,v 1.15 2019/08/23 12:09:18 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_linux32.h"
@@ -262,6 +262,7 @@
case LINUX_TIOCLINUX_READMOUSE:
case LINUX_TIOCLINUX_VESABLANK:
case LINUX_TIOCLINUX_CURCONS: /* could use VT_GETACTIVE */
+ default:
error = EINVAL;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index