Skip to content

Commit

Permalink
vfs: do_last(): make exit RCU safe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Szeredi authored and Al Viro committed Jun 1, 2012
1 parent 697f514 commit e276ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e276ae6

Please sign in to comment.