agp: fix arbitrary kernel memory writes