Commit 666bcd913b1f3e4be8f92995c217498e05379493
Committed by
Riku Voipio
1 parent
719f908e
getrlimit conversion mix-up
Fixes getrlimit implementation that overwrote the result of the syscall instead of converting it Signed-off-by: Ulrich Hecht <uli@suse.de> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Showing
1 changed file
with
2 additions
and
2 deletions
linux-user/syscall.c
... | ... | @@ -5047,8 +5047,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, |
5047 | 5047 | if (!is_error(ret)) { |
5048 | 5048 | if (!lock_user_struct(VERIFY_WRITE, target_rlim, arg2, 0)) |
5049 | 5049 | goto efault; |
5050 | - rlim.rlim_cur = tswapl(target_rlim->rlim_cur); | |
5051 | - rlim.rlim_max = tswapl(target_rlim->rlim_max); | |
5050 | + target_rlim->rlim_cur = tswapl(rlim.rlim_cur); | |
5051 | + target_rlim->rlim_max = tswapl(rlim.rlim_max); | |
5052 | 5052 | unlock_user_struct(target_rlim, arg2, 1); |
5053 | 5053 | } |
5054 | 5054 | } | ... | ... |