Repository navigation
Commit 7dcbd90
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 a5116b9 commit 7dcbd90
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2558 | 2558 | | |
2559 | 2559 | | |
2560 | 2560 | | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
2561 | 2564 | | |
2562 | 2565 | | |
2563 | 2566 | | |
2564 | 2567 | | |
2565 | | - | |
| 2568 | + | |
2566 | 2569 | | |
2567 | 2570 | | |
2568 | 2571 | | |
2569 | 2572 | | |
2570 | 2573 | | |
2571 | 2574 | | |
2572 | | - | |
2573 | | - | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
2574 | 2579 | | |
2575 | 2580 | | |
2576 | 2581 | | |
2577 | 2582 | | |
2578 | 2583 | | |
2579 | | - | |
| 2584 | + | |
2580 | 2585 | | |
2581 | 2586 | | |
2582 | 2587 | | |
2583 | 2588 | | |
2584 | | - | |
| 2589 | + | |
2585 | 2590 | | |
2586 | 2591 | | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
2587 | 2597 | | |
2588 | 2598 | | |
2589 | 2599 | | |
| |||
0 commit comments