dm_free(dc->temp_flip_context);
dc->temp_flip_context = NULL;
+ dm_free(dc->scratch_val_ctx);
+ dc->scratch_val_ctx = NULL;
destroy_links(dc);
dc->current_context = dm_alloc(sizeof(*dc->current_context));
dc->temp_flip_context = dm_alloc(sizeof(*dc->temp_flip_context));
+ dc->scratch_val_ctx = dm_alloc(sizeof(*dc->temp_flip_context));
if (!dc->current_context || !dc->temp_flip_context) {
dm_error("%s: failed to create validate ctx\n", __func__);
goto unexpected_fail;
}
resource_validate_ctx_destruct(context);
- dm_free(context);
+ core_dc->scratch_val_ctx = context;
context = temp_context;
}
/* TODO: determine max number of targets*/
struct validate_context *current_context;
struct validate_context *temp_flip_context;
+ struct validate_context *scratch_val_ctx;
struct resource_pool *res_pool;
/*Power State*/