diff --git a/zio-sys.c b/zio-sys.c index ca50047d0a482d5d1163ea5f99ec9f616d8abf6c..841f0183d1390dcee5ff6177453eada0c25b7554 100644 --- a/zio-sys.c +++ b/zio-sys.c @@ -863,6 +863,12 @@ static int cset_register(struct zio_cset *cset) pr_err("ZIO: no channels in cset%i\n", cset->index); return -EINVAL; } + + if (!cset->ssize) { + pr_err("ZIO: ssize can not be 0 in cset%i\n", cset->index); + return -EINVAL; + } + /* Get an available minor base */ err = __zio_minorbase_get(cset); if (err) {