Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6198f892 authored by Vaibhav Agarwal's avatar Vaibhav Agarwal Committed by Greg Kroah-Hartman
Browse files

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: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: default avatarMark Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 15c726ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}