patch-2.4.26 linux-2.4.26/drivers/ieee1394/dma.c
Next file: linux-2.4.26/drivers/ieee1394/video1394.c
Previous file: linux-2.4.26/drivers/ide/raid/medley.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
2004-04-14 06:05:30.000000000 -0700
-  Orig file: 
linux-2.4.25/drivers/ieee1394/dma.c
-  Orig date: 
2003-08-25 04:44:41.000000000 -0700
diff -urN linux-2.4.25/drivers/ieee1394/dma.c linux-2.4.26/drivers/ieee1394/dma.c
@@ -86,7 +86,7 @@
 	memset(dma->kvirt, 0, n_pages * PAGE_SIZE);
 
 	/* allocate scatter/gather list */
-	dma->sglist = kmalloc(dma->n_pages * sizeof(struct scatterlist), GFP_KERNEL);
+	dma->sglist = vmalloc(dma->n_pages * sizeof(struct scatterlist));
 	if (!dma->sglist) {
 		printk(KERN_ERR "dma_region_alloc: kmalloc(sglist) failed\n");
 		goto err;
@@ -130,7 +130,7 @@
 	}
 
 	if (dma->sglist) {
-		kfree(dma->sglist);
+		vfree(dma->sglist);
 		dma->sglist = NULL;
 	}
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)