patch-2.4.5 linux/drivers/video/sis/sis_main.c
Next file: linux/fs/Config.in
Previous file: linux/drivers/video/matrox/matroxfb_crtc2.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Fri May  4 15:10:17 2001
-  Orig file: 
v2.4.4/linux/drivers/video/sis/sis_main.c
-  Orig date: 
Fri Feb  9 11:30:23 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/video/sis/sis_main.c linux/drivers/video/sis/sis_main.c
@@ -1029,6 +1029,8 @@
 
 	if (heap.pohFreeList == NULL) {
 		poha = kmalloc(OH_ALLOC_SIZE, GFP_KERNEL);
+		if (!poha)
+			return NULL;
 
 		poha->pohaNext = heap.pohaChain;
 		heap.pohaChain = poha;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)