diff options
-rw-r--r-- | include/linux/taskstats_kern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/taskstats_kern.h b/include/linux/taskstats_kern.h index a437ca0d226b..664224008fb2 100644 --- a/include/linux/taskstats_kern.h +++ b/include/linux/taskstats_kern.h | |||
@@ -32,6 +32,9 @@ static inline void taskstats_tgid_alloc(struct signal_struct *sig) | |||
32 | struct taskstats *stats; | 32 | struct taskstats *stats; |
33 | unsigned long flags; | 33 | unsigned long flags; |
34 | 34 | ||
35 | if (sig->stats != NULL) | ||
36 | return; | ||
37 | |||
35 | stats = kmem_cache_zalloc(taskstats_cache, SLAB_KERNEL); | 38 | stats = kmem_cache_zalloc(taskstats_cache, SLAB_KERNEL); |
36 | if (!stats) | 39 | if (!stats) |
37 | return; | 40 | return; |