提交 6198f892 编写于 作者: V Vaibhav Agarwal 提交者: Greg Kroah-Hartman

greybus: Use valid control pointer while freeing memory

While releasing memory during error path exit, invalid memory pointer
was used for dapm_routes. Use a valid one.
Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: NMark Greer <mgreer@animalcreek.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
上级 15c726ea
......@@ -1317,7 +1317,7 @@ static int gbaudio_tplg_process_routes(struct gbaudio_module_info *module,
return 0;
error:
devm_kfree(module->dev, dapm_routes);
devm_kfree(module->dev, module->dapm_routes);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册