Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52eb5a90 authored by David Zafman's avatar David Zafman Committed by Sage Weil
Browse files

ceph: fix dentry reference leak in encode_fh()

Call to d_find_alias() needs a corresponding dput()

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



Signed-off-by: default avatarDavid Zafman <david.zafman@inktank.com>
Reviewed-by: default avatarSage Weil <sage@inktank.com>
parent 9bd95261
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}