patch-2.3.42 linux/drivers/char/agp/agpgart_fe.c

Next file: linux/drivers/char/generic_serial.c
Previous file: linux/drivers/char/agp/agpgart_be.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.41/linux/drivers/char/agp/agpgart_fe.c linux/drivers/char/agp/agpgart_fe.c
@@ -298,7 +298,7 @@
 	agp_memory *memory;
 
 	memory = agp_allocate_memory(pg_count, type);
-
+   printk("memory : %p\n", memory);
 	if (memory == NULL) {
 		return NULL;
 	}
@@ -911,6 +911,7 @@
 		return -ENOMEM;
 	}
 	alloc.key = memory->key;
+	alloc.physical = memory->physical;
 
 	if (copy_to_user((void *) arg, &alloc, sizeof(agp_allocate))) {
 		agp_free_memory_wrap(memory);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)