3 Jun
2019
3 Jun
'19
5:10 p.m.
probe_end:
if (ret < 0)
if (ret < 0 && ret != -EPROBE_DEFER) soc_cleanup_card_resources(card);
Should not call soc_cleanup_card_resources() if soc_init_dai_link() returns fail. Some context has not initialized yet in the case.
Why not? You need to clean up the platform naming if links fails which will causes a use-after-free bug if you don't clean it up.