[openib-general] Re: patches
Michael S. Tsirkin
mst at mellanox.co.il
Thu Apr 14 01:06:48 PDT 2005
Quoting r. Roland Dreier <roland at topspin.com>:
> Subject: Re: patches
>
> Michael> If I remember
> Michael> correctly alloc_consistent and free consistent in init_ib
> Michael> currently get different sizes, isnt that wrong?
>
> Yes, that needs to be fixed.
>
> - R.
>
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: src/linux-kernel/infiniband/hw/mthca/mthca_cmd.c
===================================================================
--- src/linux-kernel/infiniband/hw/mthca/mthca_cmd.c (revision 2169)
+++ src/linux-kernel/infiniband/hw/mthca/mthca_cmd.c (working copy)
@@ -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;
}
--
MST - Michael S. Tsirkin
More information about the general
mailing list