Topology data pointer was mistakenly set to NULL before freeing it. Fix
this.
Fixes:
64a86d9ba850 ("audio: Add module specific driver")
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
gbaudio_unregister_module(gbmodule);
gbaudio_tplg_release(gbmodule);
- gbmodule->topology = NULL;
kfree(gbmodule->topology);
+ gbmodule->topology = NULL;
gb_connection_disable(gbmodule->mgmt_connection);
list_for_each_entry_safe(dai, _dai, &gbmodule->data_list, list) {
gb_connection_disable(dai->connection);