Commit bcba9f3
HID: nintendo: prevent rumble queue overruns
Make sure that we never throw out the most recent rumble setting,
opting to overwrite the prior queue head instead. This prevents
instances where we could get rumble stuck on if there were an overrun at
the wrong time.
Signed-off-by: Daniel J. Ogorchock <djogorchock@gmail.com>
Reviewed-by: Silvan Jegen <s.jegen@gmail.com
Signed-off-by: Jiri Kosina <jkosina@suse.cz>1 parent 2653e3f commit bcba9f3
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
| 1530 | + | |
1530 | 1531 | | |
1531 | 1532 | | |
1532 | 1533 | | |
| |||
1547 | 1548 | | |
1548 | 1549 | | |
1549 | 1550 | | |
1550 | | - | |
1551 | | - | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1552 | 1566 | | |
1553 | 1567 | | |
1554 | 1568 | | |
| |||
2128 | 2142 | | |
2129 | 2143 | | |
2130 | 2144 | | |
2131 | | - | |
| 2145 | + | |
2132 | 2146 | | |
2133 | 2147 | | |
2134 | 2148 | | |
| |||
0 commit comments