mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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