aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/seq_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 6c959275f2d0..66efd0aa8fb3 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -470,6 +470,7 @@ int seq_path_root(struct seq_file *m, struct path *path, struct path *root,
470 m->count = s - m->buf; 470 m->count = s - m->buf;
471 return 0; 471 return 0;
472 } 472 }
473 err = -ENAMETOOLONG;
473 } 474 }
474 } 475 }
475 m->count = m->size; 476 m->count = m->size;