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
6994ab16ad
commit
2e970a2641
@ -1443,8 +1443,6 @@ ahc_clear_critical_section(struct ahc_softc *ahc)
|
||||
* so we are really executing the instruction just
|
||||
* before it.
|
||||
*/
|
||||
if (seqaddr != 0)
|
||||
seqaddr -= 1;
|
||||
cs = ahc->critical_sections;
|
||||
for (i = 0; i < ahc->num_critical_sections; i++, cs++) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user