Skip to content
Commit b22e8fed authored by Al Viro's avatar Al Viro
Browse files

ecryptfs: fix failure handling in ->readlink()



If ecryptfs_readlink_lower() fails, buf remains an uninitialized
pointer and passing it nd_set_link() won't do anything good.

Fixed by switching ecryptfs_readlink_lower() to saner API - make it
return buf or ERR_PTR(...) and update callers.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d8ec26d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment