seccomp: release filter after task is fully dead
[linux-block.git] / kernel / exit.c
index 727150f281033850f99eb199d66f1b2bf4c8b86d..00d77e5ba70067b5aa42404833b0c6f2f82d573c 100644 (file)
@@ -217,6 +217,7 @@ repeat:
        }
 
        write_unlock_irq(&tasklist_lock);
+       seccomp_filter_release(p);
        proc_flush_pid(thread_pid);
        put_pid(thread_pid);
        release_thread(p);