Module Name: src
Committed By: christos
Date: Tue Oct 6 13:38:50 UTC 2020
Modified Files:
src/sys/compat/linux/arch/alpha: linux_osf1.c
Log Message:
make MAXTSIZ optional
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/alpha/linux_osf1.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/arch/alpha/linux_osf1.c
diff -u src/sys/compat/linux/arch/alpha/linux_osf1.c:1.3 src/sys/compat/linux/arch/alpha/linux_osf1.c:1.4
--- src/sys/compat/linux/arch/alpha/linux_osf1.c:1.3 Fri Apr 5 23:06:28 2019
+++ src/sys/compat/linux/arch/alpha/linux_osf1.c Tue Oct 6 09:38:49 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $ */
+/* $NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -314,8 +314,10 @@ linux_sys_osf1_set_program_attributes(st
if (dsize > p->p_rlimit[RLIMIT_DATA].rlim_cur)
return (ENOMEM);
+#ifdef MAXTSIZ
if (tsize > MAXTSIZ)
return (ENOMEM);
+#endif
/* XXXSMP unlocked */
p->p_vmspace->vm_taddr = SCARG(uap, taddr);