Message ID | 20140714090028.6f04fd2c@tlielax.poochiereds.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/namei.c b/fs/namei.c index 985c6f368485..c1657deea52c 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3045,8 +3045,13 @@ finish_open: } finish_open_created: error = may_open(&nd->path, acc_mode, open_flag); - if (error) + if (error) { + if (error == -ESTALE) + goto stale_open; goto out; + } file->f_path.mnt = nd->path.mnt; error = finish_open(file, nd->path.dentry, NULL, opened); if (error) {