Commit 9c41520
audio: mixin_mixout: check source_get_data() return
source_get_data() can return -EBUSY/-ENODATA without writing the
buf_size out-parameter, leaving it (and source_ptr) uninitialized.
Return the error instead of deriving buf_end from stack garbage,
mirroring the sink_get_buffer() check.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 6349fdf commit 9c41520
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
0 commit comments