Revert "sched: Remove sched_setscheduler*() EXPORTs"
[platform/kernel/linux-rpi.git] / mm / mlock.c
index c6946c9..0cee3f9 100644 (file)
@@ -837,6 +837,7 @@ int user_shm_lock(size_t size, struct ucounts *ucounts)
        }
        if (!get_ucounts(ucounts)) {
                dec_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked);
+               allowed = 0;
                goto out;
        }
        allowed = 1;