From: Miklos Szeredi Date: Mon, 21 May 2012 15:30:06 +0000 (+0200) Subject: vfs: do_last(): make exit RCU safe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e276ae672fa2d727721b1a5a2508ff34bac85439;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 7f4ab820811a..edc18cd63a88 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: