summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-05-21 17:30:06 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-06-01 12:11:57 -0400
commite276ae672fa2d727721b1a5a2508ff34bac85439 (patch)
tree554ff042e36591f20bd8bf4e475ee0af7b95f3f6 /fs
parent697f514df10b0f46bcd7596c1be18b7e2e9b28bb (diff)
downloadblackbird-op-linux-e276ae672fa2d727721b1a5a2508ff34bac85439.tar.gz
blackbird-op-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>
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 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:
OpenPOWER on IntegriCloud