From fceef36419503f332ffd1fccdcb03da86cf9cdb3 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 6 Dec 2010 23:28:19 +0000 Subject: inode: fix crash in logging during cyclic loop detection Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 2196 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2196 --- libglusterfs/src/inode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index 7ce3e5b95f5..18faf8d1b51 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -208,6 +208,8 @@ __is_dentry_cyclic (dentry_t *dentry) ret = __foreach_ancestor_dentry (dentry, __check_cycle, dentry->inode); if (ret) { + inode = dentry->inode; + if (dentry->name) name = dentry->name; uuid_unparse (inode->gfid, uuidbuf); -- cgit