Fix an off by one in the critical section clearing code. The
code was adjusting twice for the instruction pointer indicating the *next* instruction to execute. The aic79xx driver had a similar bug, but was fixed some time ago.
This commit is contained in:
parent
d990378077
commit
31d80b6045
@ -1443,8 +1443,6 @@ ahc_clear_critical_section(struct ahc_softc *ahc)
|
|||||||
* so we are really executing the instruction just
|
* so we are really executing the instruction just
|
||||||
* before it.
|
* before it.
|
||||||
*/
|
*/
|
||||||
if (seqaddr != 0)
|
|
||||||
seqaddr -= 1;
|
|
||||||
cs = ahc->critical_sections;
|
cs = ahc->critical_sections;
|
||||||
for (i = 0; i < ahc->num_critical_sections; i++, cs++) {
|
for (i = 0; i < ahc->num_critical_sections; i++, cs++) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user