[openib-general] [PATCH for-2.6.21] IB/ipoib: error handling thinko fix
Michael S. Tsirkin
mst at mellanox.co.il
Thu Feb 15 14:16:13 PST 2007
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 at mellanox.co.il>
---
This one's obvious, isn't it?
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
index 8ee6f06..e388a41 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -148,7 +148,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;
}
--
MST
More information about the general
mailing list