summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-04-06 08:38:52 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-06 08:38:52 -0700
commit77a73eecd47c2c290cf4ecba2c5b9d26d5d812be (patch)
treedc7dcb326151655a8ac3ce165296f0adc9e74b58 /fs
parenta10c9c710f9ecea87b9f4bbb837467893b4bef01 (diff)
parent5bd73286d50fc242bbff1aaddb0e97c4527c9d78 (diff)
downloadlinux-77a73eecd47c2c290cf4ecba2c5b9d26d5d812be.tar.bz2
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs pathwalk fix from Al Viro: "Dumb braino in legitimize_path()..." * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fix a braino in legitimize_path()
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 61fdb77a7d58..a320371899cf 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -610,7 +610,7 @@ static bool __legitimize_path(struct path *path, unsigned seq, unsigned mseq)
static inline bool legitimize_path(struct nameidata *nd,
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)