patch-2.4.6 linux/drivers/char/agp/agpgart_fe.c
Next file: linux/drivers/char/console.c
Previous file: linux/drivers/char/agp/agpgart_be.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Wed Jun 27 17:10:55 2001
-  Orig file: 
v2.4.5/linux/drivers/char/agp/agpgart_fe.c
-  Orig date: 
Tue May 15 01:29:34 2001
diff -u --recursive --new-file v2.4.5/linux/drivers/char/agp/agpgart_fe.c linux/drivers/char/agp/agpgart_fe.c
@@ -875,6 +875,9 @@
 	} else {
 		agp_segment *segment;
 
+		if (reserve.seg_count >= 16384)
+			return -EINVAL;
+			
 		segment = kmalloc((sizeof(agp_segment) * reserve.seg_count),
 				  GFP_KERNEL);
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)