diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-05-21 17:30:06 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-01 12:11:57 -0400 |
commit | e276ae672fa2d727721b1a5a2508ff34bac85439 (patch) | |
tree | 554ff042e36591f20bd8bf4e475ee0af7b95f3f6 | |
parent | 697f514df10b0f46bcd7596c1be18b7e2e9b28bb (diff) | |
download | linux-e276ae672fa2d727721b1a5a2508ff34bac85439.tar.gz linux-e276ae672fa2d727721b1a5a2508ff34bac85439.tar.bz2 linux-e276ae672fa2d727721b1a5a2508ff34bac85439.zip |
vfs: do_last(): make exit RCU safe
Allow returning from do_last() with LOOKUP_RCU still set on the "out:" and
"exit:" labels.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 7f4ab820811a..edc18cd63a88 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2383,7 +2383,7 @@ common: out: if (want_write) mnt_drop_write(nd->path.mnt); - path_put(&nd->path); + terminate_walk(nd); return filp; exit_mutex_unlock: |