diff options
Diffstat (limited to 'libglusterfs/src/fd.c')
-rw-r--r-- | libglusterfs/src/fd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c index c6b060c61..4febb9f59 100644 --- a/libglusterfs/src/fd.c +++ b/libglusterfs/src/fd.c @@ -511,6 +511,9 @@ fd_lookup (inode_t *inode, pid_t pid) fd_t *fd = NULL; fd_t *iter_fd = NULL; + if (!inode) + return NULL; + LOCK (&inode->lock); { if (list_empty (&inode->fd_list)) { |