diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-06-22 10:19:14 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-06-22 10:19:14 +0200 |
commit | f9e169883164390a15b56d00cb7e22c2e72f4dba (patch) | |
tree | 2a946cfff76d6dd41005d0dd534e0bd97641019d /fs/ceph/export.c | |
parent | cde50a67397c0da7d11795d4b4418384022ab8e6 (diff) | |
parent | 8d829b9bb878904f3419af8003176a12910b94e8 (diff) |
Merge branch 'linus' into locking/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/ceph/export.c')
-rw-r--r-- | fs/ceph/export.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ceph/export.c b/fs/ceph/export.c index e8f11fa565c5..7df550c13d7f 100644 --- a/fs/ceph/export.c +++ b/fs/ceph/export.c @@ -91,6 +91,10 @@ static struct dentry *__fh_to_dentry(struct super_block *sb, u64 ino) ceph_mdsc_put_request(req); if (!inode) return ERR_PTR(-ESTALE); + if (inode->i_nlink == 0) { + iput(inode); + return ERR_PTR(-ESTALE); + } } return d_obtain_alias(inode); |