From: Miklos Szeredi Date: Mon, 21 May 2012 15:30:06 +0000 (+0200) Subject: vfs: do_last(): make exit RCU safe X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e276ae672fa2d727721b1a5a2508ff34bac85439;p=linux.git 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 Signed-off-by: Al Viro --- diff --git a/fs/namei.c b/fs/namei.c index 7f4ab820811a0..edc18cd63a888 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: