forked from Minki/linux
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: 2aa3847085
("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>
This commit is contained in:
parent
9c577491b9
commit
5bd73286d5
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user