Skip to content

Commit 58c7ffc

Browse files
Al Virotorvalds
authored andcommitted
fix a braino in compat_sys_getrlimit()
Reported-and-tested-by: Meelis Roos <[email protected]> Fixes: commit d9e968c "getrlimit()/setrlimit(): move compat to native" Signed-off-by: Al Viro <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3b06b1a commit 58c7ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ COMPAT_SYSCALL_DEFINE2(getrlimit, unsigned int, resource,
13621362

13631363
ret = do_prlimit(current, resource, NULL, &r);
13641364
if (!ret) {
1365-
struct rlimit r32;
1365+
struct compat_rlimit r32;
13661366
if (r.rlim_cur > COMPAT_RLIM_INFINITY)
13671367
r32.rlim_cur = COMPAT_RLIM_INFINITY;
13681368
else

0 commit comments

Comments
 (0)