[Prism54-devel] [patch 2/6] [prism54 svn trunk] various fixes for prism54 svn

jean-baptiste.note at wanadoo.fr jean-baptiste.note at wanadoo.fr
Sun May 15 11:44:11 UTC 2005


Index: trunk/ksrc/islpci_mgt.c
===================================================================
--- trunk.orig/ksrc/islpci_mgt.c	2005-05-15 11:18:44.000000000 +0200
+++ trunk/ksrc/islpci_mgt.c	2005-05-15 11:19:57.000000000 +0200
@@ -349,8 +349,9 @@
 		/* Ensure the results of device DMA are visible to the CPU. */
 		/* frag_len not being the whole buffer, we need to
 		 * synchronize the whole buffer */
-		pci_dma_sync_single(priv->pdev, buf->pci_addr,
-				    MGMT_FRAME_SIZE, PCI_DMA_FROMDEVICE);
+		pci_unmap_single(priv->pdev, buf->pci_addr, MGMT_FRAME_SIZE,
+				 PCI_DMA_TODEVICE);
+		buf->pci_addr = 0;
 
 		/* Perform endianess conversion for PIMFOR header in-place. */
 		header = pimfor_decode_header(buf->skb->data, frag_len);
@@ -458,6 +459,10 @@
 			wake_up(&priv->mgmt_wqueue);
 		}
 
+		/* this will need to be pushed in the individual
+		   functions handling the data */
+		dev_kfree_skb(buf->skb);
+		buf->skb = NULL;
 	}
 
 	return 0;

--
Jean-Baptiste Note
+33 (0)6 83 03 42 38
jean-baptiste.note at wanadoo.fr


More information about the Prism54-devel mailing list