Re: [PATCH 2/2] ASoC: samsung: odroid: fix a double-free issue for cpu_dai

2019-07-16 Thread Krzysztof Kozlowski
On Sat, 13 Jul 2019 at 05:48, Wen Yang wrote: > > The cpu_dai variable is still being used after the of_node_put() call, > which may result in double-free: > > of_node_put(cpu_dai);---> released here > > ret = devm_snd_soc_register_card(dev, card); > if (ret < 0

[PATCH 2/2] ASoC: samsung: odroid: fix a double-free issue for cpu_dai

2019-07-12 Thread Wen Yang
The cpu_dai variable is still being used after the of_node_put() call, which may result in double-free: of_node_put(cpu_dai);---> released here ret = devm_snd_soc_register_card(dev, card); if (ret < 0) { ... goto err_put_clk_i2s;--> jump to