diff options
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index 595bed4d2dd..81fd8d65076 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -2413,8 +2413,11 @@ afr_frame_create(xlator_t *this, int32_t *op_errno) pid_t pid = GF_CLIENT_PID_SELF_HEALD; frame = create_frame(this, this->ctx->pool); - if (!frame) + if (!frame) { + if (op_errno) + *op_errno = ENOMEM; return NULL; + } local = AFR_FRAME_INIT(frame, (*op_errno)); if (!local) { |