linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Return a negative error code when seq_path_root() fails.
@ 2009-06-03  1:35 Tetsuo Handa
  0 siblings, 0 replies; only message in thread
From: Tetsuo Handa @ 2009-06-03  1:35 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux-kernel

seq_path_root() is returning a return value of successful __d_path()
instead of returning a negative value when mangle_path() failed.

This is not a bug so far because nobody is using return value of
seq_path_root().

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
---
 fs/seq_file.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-2.6.30-rc7.orig/fs/seq_file.c
+++ linux-2.6.30-rc7/fs/seq_file.c
@@ -470,6 +470,7 @@ int seq_path_root(struct seq_file *m, st
 				m->count = s - m->buf;
 				return 0;
 			}
+			err = -ENAMETOOLONG;
 		}
 	}
 	m->count = m->size;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-03  1:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-03  1:35 [PATCH] Return a negative error code when seq_path_root() fails Tetsuo Handa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).