mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 00:36:40 +09: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:
committed by
Greg Kroah-Hartman
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user