forked from luck/tmp_suning_uos_patched
fix a braino in compat_sys_getrlimit()
Reported-and-tested-by: Meelis Roos <mroos@linux.ee>
Fixes: commit d9e968cb9f
"getrlimit()/setrlimit(): move compat to native"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3b06b1a744
commit
58c7ffc074
|
@ -1362,7 +1362,7 @@ COMPAT_SYSCALL_DEFINE2(getrlimit, unsigned int, resource,
|
|||
|
||||
ret = do_prlimit(current, resource, NULL, &r);
|
||||
if (!ret) {
|
||||
struct rlimit r32;
|
||||
struct compat_rlimit r32;
|
||||
if (r.rlim_cur > COMPAT_RLIM_INFINITY)
|
||||
r32.rlim_cur = COMPAT_RLIM_INFINITY;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user