Merge tag 'ktest-fix-make-min-failed-build-for-real' of git://git.kernel.org/pub...
[deliverable/linux.git] / kernel / fork.c
index b77fd559c78e6bbe6f92a2dfa26542a0714db083..e2cd3e2a5ae8b73dac244bd4ee98fbe70d5d5364 100644 (file)
@@ -66,6 +66,7 @@
 #include <linux/user-return-notifier.h>
 #include <linux/oom.h>
 #include <linux/khugepaged.h>
+#include <linux/signalfd.h>
 
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
@@ -935,8 +936,10 @@ static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk)
 
 void __cleanup_sighand(struct sighand_struct *sighand)
 {
-       if (atomic_dec_and_test(&sighand->count))
+       if (atomic_dec_and_test(&sighand->count)) {
+               signalfd_cleanup(sighand);
                kmem_cache_free(sighand_cachep, sighand);
+       }
 }
 
 
This page took 0.025551 seconds and 5 git commands to generate.