Skip to content

Commit 5bd7328

Browse files
author
Al Viro
committed
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: kernel test robot <rong.a.chen@intel.com> Fixes: 2aa3847 ("non-RCU analogue of the previous commit") Tested-by: kernel test robot <rong.a.chen@intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 9c57749 commit 5bd7328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/namei.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static bool __legitimize_path(struct path *path, unsigned seq, unsigned mseq)
610610
static inline bool legitimize_path(struct nameidata *nd,
611611
struct path *path, unsigned seq)
612612
{
613-
return __legitimize_path(path, nd->m_seq, seq);
613+
return __legitimize_path(path, seq, nd->m_seq);
614614
}
615615

616616
static bool legitimize_links(struct nameidata *nd)

0 commit comments

Comments
 (0)