From: Al Viro Date: Wed, 12 Jul 2017 03:59:45 +0000 (+0100) Subject: fix a braino in compat_sys_getrlimit() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=58c7ffc0747a3a9145629d4966291f0586703767;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fix a braino in compat_sys_getrlimit() Reported-and-tested-by: Meelis Roos Fixes: commit d9e968cb9f84 "getrlimit()/setrlimit(): move compat to native" Signed-off-by: Al Viro Acked-by: David S. Miller Signed-off-by: Linus Torvalds --- 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