https://github.com/torvalds/linux
Revision 2fb1e3086df9b454538491fba8121298da37cd23 authored by Al Viro on 19 August 2005, 21:42:16 UTC, committed by Linus Torvalds on 20 August 2005, 00:57:19 UTC
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>
1 parent 91aa9fb
History
Tip revision: 2fb1e3086df9b454538491fba8121298da37cd23 authored by Al Viro on 19 August 2005, 21:42:16 UTC
[PATCH] jffs2: fix symlink error handling
Tip revision: 2fb1e30

README

back to top