From ac801294f8879ba59520c60ea3aac464985fb0b8 Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Sat, 28 Oct 2006 10:38:52 -0700 Subject: [PATCH] --- yaml --- r: 40412 b: refs/heads/master c: 17b02695b254aa2ef0e53df9c8e6548f86e66a9d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/taskstats_kern.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index fe86bfa044de..542855342cbc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 093a8e8aecd77b2799934996a55a6838e1e2b8f3 +refs/heads/master: 17b02695b254aa2ef0e53df9c8e6548f86e66a9d diff --git a/trunk/include/linux/taskstats_kern.h b/trunk/include/linux/taskstats_kern.h index a437ca0d226b..664224008fb2 100644 --- a/trunk/include/linux/taskstats_kern.h +++ b/trunk/include/linux/taskstats_kern.h @@ -32,6 +32,9 @@ static inline void taskstats_tgid_alloc(struct signal_struct *sig) struct taskstats *stats; unsigned long flags; + if (sig->stats != NULL) + return; + stats = kmem_cache_zalloc(taskstats_cache, SLAB_KERNEL); if (!stats) return;