Commit 5bd73286 authored by Al Viro's avatar Al Viro

fix a braino in legitimize_path()

brown paperbag time... wrong order of arguments ended up confusing
the values to check dentry and mount_lock seqcounts against.
Reported-by: default avatarkernel test robot <rong.a.chen@intel.com>
Fixes: 2aa38470 ("non-RCU analogue of the previous commit")
Tested-by: default avatarkernel test robot <rong.a.chen@intel.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 9c577491
...@@ -610,7 +610,7 @@ static bool __legitimize_path(struct path *path, unsigned seq, unsigned mseq) ...@@ -610,7 +610,7 @@ static bool __legitimize_path(struct path *path, unsigned seq, unsigned mseq)
static inline bool legitimize_path(struct nameidata *nd, static inline bool legitimize_path(struct nameidata *nd,
struct path *path, unsigned seq) struct path *path, unsigned seq)
{ {
return __legitimize_path(path, nd->m_seq, seq); return __legitimize_path(path, seq, nd->m_seq);
} }
static bool legitimize_links(struct nameidata *nd) static bool legitimize_links(struct nameidata *nd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment