Commit f58d583
sdma: fix off-by-one in the event bound check
The event-number range check used a strict greater-than against the
event count, allowing the count value itself to index one past the
array. Use greater-or-equal, in both the enable and disable paths.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent b09b3ed commit f58d583
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
0 commit comments