diff options
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r-- | fs/proc/array.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 9b45ee8..b6cf87a 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -204,7 +204,11 @@ static inline void task_state(struct seq_file *m, struct pid_namespace *ns, group_info = cred->group_info; task_unlock(p); +#ifdef CONFIG_SLP + for (g = 0; g < group_info->ngroups; g++) +#else for (g = 0; g < min(group_info->ngroups, NGROUPS_SMALL); g++) +#endif seq_printf(m, "%d ", GROUP_AT(group_info, g)); put_cred(cred); |