Commit e276ae67 authored by Miklos Szeredi's avatar Miklos Szeredi Committed by 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: default avatarMiklos Szeredi <mszeredi@suse.cz>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 697f514d
......@@ -2383,7 +2383,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
out:
if (want_write)
mnt_drop_write(nd->path.mnt);
path_put(&nd->path);
terminate_walk(nd);
return filp;
exit_mutex_unlock:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment