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

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)