summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 3e95fe878..74d2cf5f1 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -229,7 +229,7 @@ static inline void __put_fs_struct(struct fs_struct *fs)
dput(fs->altroot);
mntput(fs->altrootmnt);
}
- kfree(fs);
+ kmem_cache_free(fs_cachep, fs);
}
}
@@ -264,7 +264,7 @@ static inline void __exit_sighand(struct task_struct *tsk)
tsk->sig = NULL;
spin_unlock_irq(&tsk->sigmask_lock);
if (atomic_dec_and_test(&sig->count))
- kfree(sig);
+ kmem_cache_free(sigact_cachep, sig);
}
flush_signals(tsk);