patch-2.4.0-test8 linux/Documentation/DMA-mapping.txt

Next file: linux/Documentation/cachetlb.txt
Previous file: linux/Documentation/Configure.help
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test7/linux/Documentation/DMA-mapping.txt linux/Documentation/DMA-mapping.txt
@@ -345,13 +345,13 @@
 			 * the DMA transfer with the CPU first
 			 * so that we see updated contents.
 			 */
-			pci_dma_sync_single(cp->pdev, cp->rx_buf, cp->rx_len,
+			pci_dma_sync_single(cp->pdev, cp->rx_dma, cp->rx_len,
 					    PCI_DMA_FROMDEVICE);
 
 			/* Now it is safe to examine the buffer. */
 			hp = (struct my_card_header *) cp->rx_buf;
 			if (header_is_ok(hp)) {
-				pci_unmap_single(cp->pdev, cp->rx_buf, cp->rx_len,
+				pci_unmap_single(cp->pdev, cp->rx_dma, cp->rx_len,
 						 PCI_DMA_FROMDEVICE);
 				pass_to_upper_layers(cp->rx_buf);
 				make_and_setup_new_rx_buf(cp);

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