diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index 130220cd6ef..82eee2f1241 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -795,6 +795,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; |