Эх сурвалжийг харах

[AGPGART] Fix PCI-posting flush typo.

Unfortunately there was a typo in one of the patches I sent,
(The one now committed to the agpgart tree).
It may cause a bus error on i810 type hardware.

Signed-off-by: Thomas Hellstrom <thomas@tungstengraphics.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Thomas Hellstrom 18 жил өмнө
parent
commit
7f02d687b4

+ 1 - 1
drivers/char/agp/intel-agp.c

@@ -253,7 +253,7 @@ insert:
 			mem->memory[i], mem->type),
 			mem->memory[i], mem->type),
 			intel_i810_private.registers+I810_PTE_BASE+(j*4));
 			intel_i810_private.registers+I810_PTE_BASE+(j*4));
 	}
 	}
-	readl(intel_i810_private.registers+I810_PTE_BASE+(j-1*4));	/* PCI Posting. */
+	readl(intel_i810_private.registers+I810_PTE_BASE+((j-1)*4));	/* PCI Posting. */
 
 
 	agp_bridge->driver->tlb_flush(mem);
 	agp_bridge->driver->tlb_flush(mem);
 	return 0;
 	return 0;