Commit 7c113eb
committed
igo_nr: clamp control switch element count
The switch get handler looped over a host-supplied element count while
writing the reply channel array and reading per-channel state. Reject
counts larger than the maximum channel count before the loop.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 3f7738d commit 7c113eb
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
569 | 574 | | |
570 | 575 | | |
571 | 576 | | |
| |||
0 commit comments