Commit 28b97ca
committed
audio: mixin_mixout: check sink_get_buffer() return value
sink_get_buffer() can return -EBUSY or -ENODATA without writing
its output parameters, so using buf_size right after the call
read an uninitialized value and built an invalid buffer end pointer.
Check the return value and bail out on error in both mixout_process()
and the sibling mixin_process() acquire path,
releasing already-acquired source data on the mixin path.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 0f9fa75 commit 28b97ca
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
463 | 468 | | |
464 | 469 | | |
465 | 470 | | |
| |||
513 | 518 | | |
514 | 519 | | |
515 | 520 | | |
516 | | - | |
| 521 | + | |
517 | 522 | | |
518 | 523 | | |
519 | 524 | | |
| |||
574 | 579 | | |
575 | 580 | | |
576 | 581 | | |
577 | | - | |
578 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
579 | 587 | | |
580 | 588 | | |
581 | 589 | | |
| |||
0 commit comments