Al Viro 2fb1e3086d [PATCH] jffs2: fix symlink error handling
The current calling conventions for ->follow_link() are already fairly
complex.

What we have is
	1) you can return -error; then you must release nameidata yourself
	   and ->put_link() will _not_ be called.
	2) you can do nd_set_link(nd, ERR_PTR(-error)) and return 0
	3) you can do nd_set_link(nd, path) and return 0
	4) you can return 0 (after having moved nameidata yourself)

jffs2 follow_link() is broken - it has an exit where it returns
-EIO and leaks nameidata.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-19 17:57:19 -07:00
..
2005-06-30 22:29:48 -07:00
2005-06-30 08:45:12 -07:00
2005-07-14 09:00:25 -07:00
2005-08-06 09:42:06 -07:00
2005-08-10 11:14:39 -05:00
2005-05-05 16:36:47 -07:00
2005-07-29 13:12:49 -07:00
2005-06-30 08:45:11 -07:00
2005-07-12 20:38:38 -07:00
2005-05-05 16:36:47 -07:00
2005-08-07 10:00:38 -07:00
2005-07-12 16:01:02 -07:00
2005-07-12 20:38:38 -07:00
2005-08-08 11:53:47 -07:00
2005-06-24 00:05:19 -07:00
2005-07-27 16:26:06 -07:00
2005-07-12 20:38:38 -07:00
2005-08-04 13:11:15 -07:00
2005-07-27 16:26:06 -07:00
2005-07-12 20:38:38 -07:00
2005-08-15 09:50:31 -07:00
2005-07-12 20:38:38 -07:00
2005-07-12 20:38:38 -07:00
2005-05-05 16:36:47 -07:00
2005-07-12 20:38:38 -07:00