summaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2017-07-12 04:59:45 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-12 09:15:00 -0700
commit58c7ffc0747a3a9145629d4966291f0586703767 (patch)
treee3805df8a96cf9af0d5e001dcd82c9c3b1619f4a /kernel/sys.c
parent3b06b1a7448ee4e8e51dae3938774735404e51fb (diff)
downloadlinux-58c7ffc0747a3a9145629d4966291f0586703767.tar.gz
linux-58c7ffc0747a3a9145629d4966291f0586703767.tar.bz2
linux-58c7ffc0747a3a9145629d4966291f0586703767.zip
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>
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 73fc0af147d0..2855ee73acd0 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -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