summaryrefslogtreecommitdiffstats
path: root/kernel/mm/msync.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mm/msync.c')
-rw-r--r--kernel/mm/msync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/mm/msync.c b/kernel/mm/msync.c
index bb04d53ae..24e612fef 100644
--- a/kernel/mm/msync.c
+++ b/kernel/mm/msync.c
@@ -38,7 +38,7 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags)
if (flags & ~(MS_ASYNC | MS_INVALIDATE | MS_SYNC))
goto out;
- if (start & ~PAGE_MASK)
+ if (offset_in_page(start))
goto out;
if ((flags & MS_ASYNC) && (flags & MS_SYNC))
goto out;