提交 e276ae67 编写于 作者: M Miklos Szeredi 提交者: Al Viro

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: NMiklos Szeredi <mszeredi@suse.cz>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 697f514d
...@@ -2383,7 +2383,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path, ...@@ -2383,7 +2383,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
out: out:
if (want_write) if (want_write)
mnt_drop_write(nd->path.mnt); mnt_drop_write(nd->path.mnt);
path_put(&nd->path); terminate_walk(nd);
return filp; return filp;
exit_mutex_unlock: exit_mutex_unlock:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册