Commit 431e0c3
committed
igo_nr: reject out-of-range 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 431e0c3
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
569 | 573 | | |
570 | 574 | | |
571 | 575 | | |
| |||
0 commit comments