diff --git a/mm/mlock.c b/mm/mlock.c index fb6912f3efe670..a23a533e946245 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -646,11 +646,10 @@ SYSCALL_DEFINE2(mlock, unsigned long, start, size_t, len) SYSCALL_DEFINE3(mlock2, unsigned long, start, size_t, len, int, flags) { - vm_flags_t vm_flags = VM_LOCKED; if (flags) return -EINVAL; - return do_mlock(start, len, vm_flags); + return do_mlock(start, len, VM_LOCKED); } SYSCALL_DEFINE2(munlock, unsigned long, start, size_t, len)