be careful with nd->inode in path_init() and follow_dotdot_rcu()

commit 4023bfc9f3 upstream.

in the former we simply check if dentry is still valid after picking
its ->d_inode; in the latter we fetch ->d_inode in the same places
where we fetch dentry and its ->d_seq, under the same checks.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Al Viro 2014-09-13 21:59:43 -04:00 • committed by Luis Henriques
commit 3ff4c0b892