commit | e276ae672fa2d727721b1a5a2508ff34bac85439 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@suse.cz> | Mon May 21 17:30:06 2012 +0200 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Fri Jun 01 12:11:57 2012 -0400 |
tree | 554ff042e36591f20bd8bf4e475ee0af7b95f3f6 | |
parent | 697f514df10b0f46bcd7596c1be18b7e2e9b28bb [diff] |
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>
diff --git a/fs/namei.c b/fs/namei.c index 7f4ab82..edc18cd 100644 --- a/fs/namei.c +++ b/fs/namei.c
@@ -2383,7 +2383,7 @@ out: if (want_write) mnt_drop_write(nd->path.mnt); - path_put(&nd->path); + terminate_walk(nd); return filp; exit_mutex_unlock: