From d22b495e0c4c180de63082add3e3e3168f1a0e1f Mon Sep 17 00:00:00 2001 From: Basavanagowda Kanur Date: Wed, 29 Apr 2009 02:16:51 +0530 Subject: cluster/unify - unify_forget() should not try to access inode->ctx, if inode->st_mode is not set. Signed-off-by: Anand V. Avati --- xlators/cluster/unify/src/unify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/cluster/unify/src/unify.c b/xlators/cluster/unify/src/unify.c index 9fcf43ae26f..610cfd6f6b9 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; -- cgit