IPoIB/cm: Fix DMA direction typo
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>
Tue, 10 Apr 2007 15:32:42 +0000 (18:32 +0300)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Apr 2007 15:58:30 +0000 (08:58 -0700)
commit6371ea3d48e17d4638a91a4a1e0364e56204e418
tree8ef123fa72e84c1f9a1fbd6365af02802a61560d
parent1d426d6418d1914b592c9c307c02e488d9182fa8
IPoIB/cm: Fix DMA direction typo

Receive buffers need to be mapped with DMA_FROM_DEVICE.  Incorrectly
mapping with DMA_TO_DEVICE causes a hard lock on ppc64 machines with
an IOMMU.

This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=431>

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c