diff options
| author | Paul Saab <ps@FreeBSD.org> | 2001-10-10 23:06:54 +0000 |
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2001-10-10 23:06:54 +0000 |
| commit | cbc89bfbfe8e7f75bd743851f4890a1f1c58f4be (patch) | |
| tree | 851a2b6bf1a0825cd12cca18ac56abe59123f449 /sys/compat/linux/linux_misc.c | |
| parent | f21fc1273675748376a44212c18b7206b75561ab (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 0d21eca80ddc..64b9782589f6 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -365,7 +365,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args) * XXX - this is not complete. it should check current usage PLUS * the resources needed by this library. */ - if (a_out->a_text > MAXTSIZ || + if (a_out->a_text > maxtsiz || a_out->a_data + bss_size > td->td_proc->p_rlimit[RLIMIT_DATA].rlim_cur) { error = ENOMEM; |
