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>
This commit is contained in:
parent
697f514df1
commit
e276ae672f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue