summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/mem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c
index da9084b..96c62a6 100644
--- a/sys/i386/i386/mem.c
+++ b/sys/i386/i386/mem.c
@@ -111,11 +111,6 @@ mmclose(dev, flags, fmt, p)
struct proc *p;
{
switch (minor(dev)) {
- case 0:
- case 1:
- if (securelevel >= 1)
- return (EPERM);
- break;
case 14:
curproc->p_md.md_regs->tf_eflags &= ~PSL_IOPL;
break;
@@ -135,6 +130,11 @@ mmopen(dev, flags, fmt, p)
int error;
switch (minor(dev)) {
+ case 0:
+ case 1:
+ if (securelevel >= 1)
+ return (EPERM);
+ break;
case 14:
error = suser(p);
if (error != 0)
OpenPOWER on IntegriCloud