summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2007-02-16 00:16:13 +0200
committerRoland Dreier <rolandd@cisco.com>2007-02-16 13:57:35 -0800
commit8a2e65f87c66ab1e720f49378750cdd800f9e9cf (patch)
tree8aece3b76c52dd7c398d17ba2e5977580b77ca61 /drivers/infiniband
parentc52daa29760818772ee4211be4ee8d1c78b888d5 (diff)
downloadop-kernel-dev-8a2e65f87c66ab1e720f49378750cdd800f9e9cf.zip
op-kernel-dev-8a2e65f87c66ab1e720f49378750cdd800f9e9cf.tar.gz
IPoIB: CM error handling thinko fix
ipoib_cm_alloc_rx_skb() might be called from IRQ context, so it must use dev_kfree_skb_any(), not kfree_skb(). Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
index 8881a71..4d59682 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -145,7 +145,7 @@ partial_error:
for (; i >= 0; --i)
ib_dma_unmap_single(priv->ca, mapping[i + 1], PAGE_SIZE, DMA_FROM_DEVICE);
- kfree_skb(skb);
+ dev_kfree_skb_any(skb);
return -ENOMEM;
}
OpenPOWER on IntegriCloud