From ef208e630d99925ef5b22b336ce48d8a7763cb8d Mon Sep 17 00:00:00 2001 From: Alessandro Rubini <rubini@gnudd.com> Date: Thu, 24 Nov 2011 01:03:42 +0100 Subject: [PATCH] zio-sys: put buffer and trigger modules on error Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Federico Vaga <federico.vaga@gmail.com> --- zio-sys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zio-sys.c b/zio-sys.c index 00398ff..916f632 100644 --- a/zio-sys.c +++ b/zio-sys.c @@ -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: -- GitLab