diff options
author | Basavanagowda Kanur <gowda@gluster.com> | 2009-04-29 02:16:51 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-30 17:08:06 +0530 |
commit | d22b495e0c4c180de63082add3e3e3168f1a0e1f (patch) | |
tree | 12d78890bea314af966a11d9256df10c257a2f73 /xlators/cluster/unify | |
parent | 2de8717247d3dc1dcda4e3e8b3c260887c3e5891 (diff) |
cluster/unify - unify_forget() should not try to access inode->ctx, if inode->st_mode is not set.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/unify')
-rw-r--r-- | xlators/cluster/unify/src/unify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/unify/src/unify.c b/xlators/cluster/unify/src/unify.c index 9fcf43ae2..610cfd6f6 100644 --- a/xlators/cluster/unify/src/unify.c +++ b/xlators/cluster/unify/src/unify.c @@ -4119,7 +4119,7 @@ unify_forget (xlator_t *this, int16_t *list = NULL; uint64_t tmp_list = 0; - if (!S_ISDIR(inode->st_mode)) { + if (inode->st_mode && (!S_ISDIR(inode->st_mode))) { inode_ctx_get (inode, this, &tmp_list); if (tmp_list) { list = (int16_t *)(long)tmp_list; |