Skip to content
Snippets Groups Projects
Commit ef208e63 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

zio-sys: put buffer and trigger modules on error


Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: default avatarFederico Vaga <federico.vaga@gmail.com>
parent dd8b237b
Branches
Tags
No related merge requests found
......@@ -1087,10 +1087,12 @@ static int cset_register(struct zio_cset *cset)
out_init:
__trigger_destroy_instance(cset);
out_trig:
zio_trigger_put(cset->trig);
cset->trig = NULL;
out_reg:
for (j = i-1; j >= 0; j--)
chan_unregister(&cset->chan[j]);
zio_buffer_put(cset->zbuf);
out_buf:
cset_free_chan(cset);
out_alloc:
......
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