Call to d_find_alias() needs a corresponding dput()

This fixes http://tracker.newdream.net/issues/3271

[Upstream commit 52eb5a900a9863a8b77a895f770e5d825c8e02c6]

CC: [email protected]
Signed-off-by: David Zafman <[email protected]>
Reviewed-by: Sage Weil <[email protected]>
---
 fs/ceph/export.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ceph/export.c b/fs/ceph/export.c
index 02ce909..9349bb3 100644
--- a/fs/ceph/export.c
+++ b/fs/ceph/export.c
@@ -90,6 +90,8 @@ static int ceph_encode_fh(struct inode *inode, u32 *rawfh, 
int *max_len,
                *max_len = handle_length;
                type = 255;
        }
+       if (dentry)
+               dput(dentry);
        return type;
 }
 
-- 
1.7.9

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to