diff options
| author | joerg <joerg@NetBSD.org> | 2012-09-22 22:34:02 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2012-09-22 22:34:02 +0000 |
| commit | b09e7941671dafbf0049482ecf21204d43018cbe (patch) | |
| tree | a18640c333cdd0989a8d8b4b745098e8b6c18d22 /sys/compat/linux32 | |
| parent | f77b811b5d2c555d2612bafbb9b5bf28ce66054c (diff) | |
LINUX_RLIM_INFINITY doesn't fit into the value range for linux32, so
introduce a variant with correct value.
Diffstat (limited to 'sys/compat/linux32')
| -rw-r--r-- | sys/compat/linux32/common/linux32_resource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux32/common/linux32_resource.c b/sys/compat/linux32/common/linux32_resource.c index f732de9259a..54970167ec7 100644 --- a/sys/compat/linux32/common/linux32_resource.c +++ b/sys/compat/linux32/common/linux32_resource.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_resource.c,v 1.10 2008/11/19 18:36:04 ad Exp $ */ +/* $NetBSD: linux32_resource.c,v 1.11 2012/09/22 22:34:03 joerg Exp $ */ /*- * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_resource.c,v 1.10 2008/11/19 18:36:04 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_resource.c,v 1.11 2012/09/22 22:34:03 joerg Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -111,7 +111,7 @@ linux32_sys_setrlimit(struct lwp *l, const struct linux32_sys_setrlimit_args *ua if (which < 0) return -which; - linux_to_bsd_rlimit(&rl, &orl); + linux32_to_bsd_rlimit(&rl, &orl); return dosetrlimit(l, l->l_proc, which, &rl); } |
