⬢ DragonFlyBSD Kernel Audit
DF-4255 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/agp/intel-gtt.c b/sys/dev/agp/intel-gtt.c
index 1111111..2222222 100644
--- a/sys/dev/agp/intel-gtt.c
+++ b/sys/dev/agp/intel-gtt.c
@@ -1000,7 +1000,7 @@ agp_i915_write_gtt(device_t dev, u_int index, uint32_t pte)
 	struct agp_i810_softc *sc;
 
 	sc = device_get_softc(dev);
-	bus_write_4(sc->sc_res[0], index * 4, pte);
+	bus_write_4(sc->sc_res[1], index * 4, pte);
 }
 
 static void