summaryrefslogtreecommitdiffstats
path: root/xlators/features/compress
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/compress')
-rw-r--r--xlators/features/compress/src/cdc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/features/compress/src/cdc.c b/xlators/features/compress/src/cdc.c
index 25ea6dc1846..adace6bcca8 100644
--- a/xlators/features/compress/src/cdc.c
+++ b/xlators/features/compress/src/cdc.c
@@ -118,8 +118,8 @@ cdc_writev(call_frame_t *frame, xlator_t *this, fd_t *fd, struct iovec *vector,
};
size_t isize = 0;
- GF_VALIDATE_OR_GOTO("cdc", this, default_out);
- GF_VALIDATE_OR_GOTO(this->name, frame, default_out);
+ GF_VALIDATE_OR_GOTO("cdc", this, err);
+ GF_VALIDATE_OR_GOTO(this->name, frame, err);
priv = this->private;
@@ -167,6 +167,9 @@ default_out:
FIRST_CHILD(this)->fops->writev, fd, vector, count, offset,
flags, iobref, xdata);
return 0;
+err:
+ STACK_UNWIND_STRICT(writev, frame, -1, EINVAL, NULL, NULL, NULL);
+ return 0;
}
int32_t