Skip to content

Commit 88c84bb

Browse files
vineetgarcxxkent
authored andcommitted
ARCv2: unbork #2: mmap is page offset btot byte offset
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent bcb044c commit 88c84bb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/arc/kernel/sys.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ SYSCALL_DEFINE6(mmap2, unsigned long, addr, unsigned long, len,
2525
unsigned long, prot, unsigned long, flags,
2626
unsigned long, fd, unsigned long, off)
2727
{
28-
if (offset_in_page(off) != 0)
29-
return -EINVAL;
30-
3128
return ksys_mmap_pgoff(addr, len, prot, flags, fd, off);
3229
}
3330
#endif

0 commit comments

Comments
 (0)