summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2007-01-14 16:07:01 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2007-01-14 16:07:01 +0000
commit31becc7692e33adeb1b69fcef32d6bb9e706ac2b (patch)
tree9097cf72ba020339417787ce293b32d53e0467ee /sys
parent85cc83bafba12413efb63273f8bf3b83d3189164 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux/linux_mib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c
index ac5774e6f7b6..095b5ee67118 100644
--- a/sys/compat/linux/linux_mib.c
+++ b/sys/compat/linux/linux_mib.c
@@ -233,7 +233,7 @@ linux_use26(struct thread *td)
{
struct prison *pr;
struct linux_prison *lpr;
- int use26 = 0; /* defaults to off */
+ int use26 = linux_use_linux26;
pr = td->td_ucred->cr_prison;
if (pr != NULL) {
@@ -241,8 +241,7 @@ linux_use26(struct thread *td)
lpr = (struct linux_prison *)pr->pr_linux;
use26 = lpr->pr_use_linux26;
}
- } else
- use26 = linux_use_linux26;
+ }
return (use26);
}