From: Michael S. Tsirkin Date: Thu, 15 Feb 2007 22:16:13 +0000 (+0200) Subject: IPoIB: CM error handling thinko fix X-Git-Tag: v2.6.21-rc1~79^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8a2e65f87c66ab1e720f49378750cdd800f9e9cf;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 8881a717e9d..4d59682f7d4 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; }