Commit 9c35166d authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini

object.c: do not set ti_old->cset to NULL

During creation, ti_create_and_init accept cset as parameter. So the
trigger can use this operation in some way. So, we cannot set to null
ti_old->cset because the trigger can use it again
Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 901df90c
......@@ -306,7 +306,6 @@ int zio_change_current_trigger(struct zio_cset *cset, char *name)
/* Ok, we are done. Kill the current trigger to replace it*/
zio_trigger_abort_disable(cset, 1);
ti_old->cset = NULL;
__ti_unregister(trig_old, ti_old);
__ti_destroy(trig_old, ti_old);
zio_trigger_put(trig_old, cset->zdev->owner);
......
Markdown is supported
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