Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Use EOPNOTSUPP instead of EINVAL.
details: https://anonhg.NetBSD.org/src/rev/266d17056fa0
branches: trunk
changeset: 360749:266d17056fa0
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Mar 29 07:24:26 2018 +0000
description:
Use EOPNOTSUPP instead of EINVAL.
diffstat:
sys/arch/x86/x86/svs.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 166cb4f76512 -r 266d17056fa0 sys/arch/x86/x86/svs.c
--- a/sys/arch/x86/x86/svs.c Thu Mar 29 07:21:24 2018 +0000
+++ b/sys/arch/x86/x86/svs.c Thu Mar 29 07:24:26 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svs.c,v 1.15 2018/03/29 07:15:12 maxv Exp $ */
+/* $NetBSD: svs.c,v 1.16 2018/03/29 07:24:26 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svs.c,v 1.15 2018/03/29 07:15:12 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svs.c,v 1.16 2018/03/29 07:24:26 maxv Exp $");
#include "opt_svs.h"
@@ -733,7 +733,10 @@
return error;
if (val == 1) {
- error = EINVAL;
+ if (svs_enabled)
+ error = 0;
+ else
+ error = EOPNOTSUPP;
} else {
if (svs_enabled)
error = svs_disable();
Home |
Main Index |
Thread Index |
Old Index