[openib-general] Re: patches

Roland Dreier roland at topspin.com
Mon Apr 18 08:57:38 PDT 2005


Thanks, it turns out I made the same mistake several times:

--- infiniband/hw/mthca/mthca_cmd.c	(revision 2156)
+++ infiniband/hw/mthca/mthca_cmd.c	(working copy)
@@ -1053,7 +1053,7 @@ int mthca_QUERY_ADAPTER(struct mthca_dev
 	MTHCA_GET(adapter->inta_pin, outbox, QUERY_ADAPTER_INTA_PIN_OFFSET);
 
 out:
-	pci_free_consistent(dev->pdev, QUERY_DEV_LIM_OUT_SIZE, outbox, outdma);
+	pci_free_consistent(dev->pdev, QUERY_ADAPTER_OUT_SIZE, outbox, outdma);
 	return err;
 }
 
@@ -1224,7 +1224,7 @@ int mthca_INIT_IB(struct mthca_dev *dev,
 	err = mthca_cmd(dev, indma, port, 0, CMD_INIT_IB,
 			CMD_TIME_CLASS_A, status);
 
-	pci_free_consistent(dev->pdev, INIT_HCA_IN_SIZE, inbox, indma);
+	pci_free_consistent(dev->pdev, INIT_IB_IN_SIZE, inbox, indma);
 	return err;
 }
 
@@ -1269,7 +1269,7 @@ int mthca_SET_IB(struct mthca_dev *dev, 
 	err = mthca_cmd(dev, indma, port, 0, CMD_SET_IB,
 			CMD_TIME_CLASS_B, status);
 
-	pci_free_consistent(dev->pdev, INIT_HCA_IN_SIZE, inbox, indma);
+	pci_free_consistent(dev->pdev, INIT_SET_IB_IN_SIZE, inbox, indma);
 	return err;
 }
 



More information about the general mailing list