Skip to content

Commit 060f431

Browse files
akpm00sfrothwell
authored andcommitted
procfs-do-not-list-tid-0-in-proc-pid-task-fix
coding style tweaks Cc: Florian Weimer <fweimer@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
1 parent 1e870a9 commit 060f431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/proc/base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3799,10 +3799,10 @@ static int proc_task_readdir(struct file *file, struct dir_context *ctx)
37993799
task = next_tid(task), ctx->pos++) {
38003800
char name[10 + 1];
38013801
unsigned int len;
3802+
38023803
tid = task_pid_nr_ns(task, ns);
38033804
if (!tid)
3804-
/* The task has just exited. */
3805-
continue;
3805+
continue; /* The task has just exited. */
38063806
len = snprintf(name, sizeof(name), "%u", tid);
38073807
if (!proc_fill_cache(file, ctx, name, len,
38083808
proc_task_instantiate, task, NULL)) {

0 commit comments

Comments
 (0)