Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix a braino in compat_sys_getrlimit()

Reported-and-tested-by: Meelis Roos <mroos@linux.ee>
Fixes: commit d9e968cb9f84 "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>

authored by

Al Viro and committed by
Linus Torvalds
58c7ffc0 3b06b1a7

+1 -1
+1 -1
kernel/sys.c
··· 1362 1362 1363 1363 ret = do_prlimit(current, resource, NULL, &r); 1364 1364 if (!ret) { 1365 - struct rlimit r32; 1365 + struct compat_rlimit r32; 1366 1366 if (r.rlim_cur > COMPAT_RLIM_INFINITY) 1367 1367 r32.rlim_cur = COMPAT_RLIM_INFINITY; 1368 1368 else