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: Vaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
15c726ea52
commit
6198f892fa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue