summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c
index e3a09000445..b77b8fbd49a 100644
--- a/libglusterfs/src/inode.c
+++ b/libglusterfs/src/inode.c
@@ -805,6 +805,9 @@ __dentry_search_arbit (inode_t *inode)
dentry_t *dentry = NULL;
dentry_t *trav = NULL;
+ if (!inode)
+ return NULL;
+
list_for_each_entry (trav, &inode->dentry_list, inode_list) {
if (__is_dentry_hashed (trav)) {
dentry = trav;