diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-05-21 11:30:06 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-01 12:11:57 -0400 |
commit | e276ae672fa2d727721b1a5a2508ff34bac85439 (patch) | |
tree | 554ff042e36591f20bd8bf4e475ee0af7b95f3f6 /fs | |
parent | 697f514df10b0f46bcd7596c1be18b7e2e9b28bb (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
2383 | out: | 2383 | out: |
2384 | if (want_write) | 2384 | if (want_write) |
2385 | mnt_drop_write(nd->path.mnt); | 2385 | mnt_drop_write(nd->path.mnt); |
2386 | path_put(&nd->path); | 2386 | terminate_walk(nd); |
2387 | return filp; | 2387 | return filp; |
2388 | 2388 | ||
2389 | exit_mutex_unlock: | 2389 | exit_mutex_unlock: |