Commit 79a617e
ipc4: Fix buffer use after free
Buffer has to be disconnected from both components before being freed.
Buffer is usually freed at unbind. However, if unbind was not called
before pipeline delete (e.g., because of a driver or test bug) buffer is
freed at ipc_pipeline_module_free(). Without this fix buffer is freed
without being disconnected from its source component and then several
lines below at ipc_comp_free() the component disconnects itself from any
buffers and so writes to already freed struct comp_buffer.
This problem seems to be a regression introduced by this commit:
8aa90d6
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>1 parent 717f51e commit 79a617e
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
0 commit comments