From: Miklos Szeredi Date: Mon, 21 May 2012 15:30:06 +0000 (+0200) Subject: vfs: do_last(): make exit RCU safe X-Git-Tag: v3.5-rc1~15^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e276ae672fa2d727721b1a5a2508ff34bac85439;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.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 7f4ab82..edc18cd 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: