summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src')
-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 e3a090004..b77b8fbd4 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;