-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module_adapter: fix double-free of base_cfg_ext data #8790
module_adapter: fix double-free of base_cfg_ext data #8790
Conversation
This PR addresses the double-free on heap as seen on https://sof-ci.01.org/sofpr/PR8764/build2195/devicetest/index.html?model=TGLU_RVP_NOCODEC-ipc4&testcase=multiple-pause-resume-50 |
System/merge/build failed on 06_00_TestHdaCodecLoopback on TGL, but seems to be an infra issue ("Unhandled Exception: System.BadImageFormatException: Could not load file or assembly" -- the test run itself went through on the DSP without errors). |
Fix handling of input_pins free. Module reset can be called multiple times, so move the resource release to module_adapter_free(). Fixes: 7046004 ("module_adapter_ipc4: Save and pre-parse base_cfg_ext data") Signed-off-by: Kai Vehmanen <[email protected]>
09b8b65
to
08edfff
Compare
V2:
|
A lot more sample failures listed in bug number #8721 which was missing from the description. |
Fix handling of input_pins free. Module reset can be called multiple times, so move the resource release to module_adapter_free().
Fixes: 7046004 ("module_adapter_ipc4: Save and pre-parse base_cfg_ext data")