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>
This commit is contained in:
parent
719f908e3a
commit
666bcd913b
@ -5047,8 +5047,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||||||
if (!is_error(ret)) {
|
if (!is_error(ret)) {
|
||||||
if (!lock_user_struct(VERIFY_WRITE, target_rlim, arg2, 0))
|
if (!lock_user_struct(VERIFY_WRITE, target_rlim, arg2, 0))
|
||||||
goto efault;
|
goto efault;
|
||||||
rlim.rlim_cur = tswapl(target_rlim->rlim_cur);
|
target_rlim->rlim_cur = tswapl(rlim.rlim_cur);
|
||||||
rlim.rlim_max = tswapl(target_rlim->rlim_max);
|
target_rlim->rlim_max = tswapl(rlim.rlim_max);
|
||||||
unlock_user_struct(target_rlim, arg2, 1);
|
unlock_user_struct(target_rlim, arg2, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user