aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 9046ad2b0614..950ebd43cdc3 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -768,7 +768,6 @@ no_thread_group:
768 /* 768 /*
769 * Move our state over to newsighand and switch it in. 769 * Move our state over to newsighand and switch it in.
770 */ 770 */
771 spin_lock_init(&newsighand->siglock);
772 atomic_set(&newsighand->count, 1); 771 atomic_set(&newsighand->count, 1);
773 memcpy(newsighand->action, oldsighand->action, 772 memcpy(newsighand->action, oldsighand->action,
774 sizeof(newsighand->action)); 773 sizeof(newsighand->action));
@@ -785,7 +784,7 @@ no_thread_group:
785 write_unlock_irq(&tasklist_lock); 784 write_unlock_irq(&tasklist_lock);
786 785
787 if (atomic_dec_and_test(&oldsighand->count)) 786 if (atomic_dec_and_test(&oldsighand->count))
788 sighand_free(oldsighand); 787 kmem_cache_free(sighand_cachep, oldsighand);
789 } 788 }
790 789
791 BUG_ON(!thread_group_leader(current)); 790 BUG_ON(!thread_group_leader(current));