Skip to content
Snippets Groups Projects
Commit 860eb44b authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini
Browse files

cset_register: ssize cannot be zero


Signed-off-by: default avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent 1f42f63e
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment