Merge tag 'mmc-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[linux-2.6-microblaze.git] / kernel / seccomp.c
index ec5c606..55a6184 100644 (file)
@@ -268,16 +268,14 @@ static u32 seccomp_run_filters(const struct seccomp_data *sd,
         * All filters in the list are evaluated and the lowest BPF return
         * value always takes priority (ignoring the DATA).
         */
-       preempt_disable();
        for (; f; f = f->prev) {
-               u32 cur_ret = BPF_PROG_RUN(f->prog, sd);
+               u32 cur_ret = bpf_prog_run_pin_on_cpu(f->prog, sd);
 
                if (ACTION_ONLY(cur_ret) < ACTION_ONLY(ret)) {
                        ret = cur_ret;
                        *match = f;
                }
        }
-       preempt_enable();
        return ret;
 }
 #endif /* CONFIG_SECCOMP_FILTER */