Commit d24e307
committed
audio: kpb: clean up FMT module list on prepare failure
prepare_fmt_modules_list() populates kpb_list_item[], device_list[]
and modules_list_item[] entries as it walks the module list. On any
mid-loop failure it returned without undoing those entries, while the
caller had already cleared the previous list, leaving a
half-configured Fast Mode Task list with stale component references.
Roll back the touched entries via clear_fmt_modules_list() on the
error path, and add a defensive bound check on outpin_idx.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 91e8d78 commit d24e307
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2561 | 2561 | | |
2562 | 2562 | | |
2563 | 2563 | | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
2564 | 2567 | | |
2565 | 2568 | | |
2566 | 2569 | | |
2567 | 2570 | | |
2568 | | - | |
| 2571 | + | |
2569 | 2572 | | |
2570 | 2573 | | |
2571 | 2574 | | |
2572 | 2575 | | |
2573 | 2576 | | |
2574 | 2577 | | |
2575 | | - | |
2576 | | - | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
2577 | 2582 | | |
2578 | 2583 | | |
2579 | 2584 | | |
2580 | 2585 | | |
2581 | 2586 | | |
2582 | | - | |
| 2587 | + | |
2583 | 2588 | | |
2584 | 2589 | | |
2585 | 2590 | | |
2586 | 2591 | | |
2587 | | - | |
| 2592 | + | |
2588 | 2593 | | |
2589 | 2594 | | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
2590 | 2600 | | |
2591 | 2601 | | |
2592 | 2602 | | |
| |||
0 commit comments