]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
IPoIB: CM error handling thinko fix
authorMichael S. Tsirkin <mst@mellanox.co.il>
Thu, 15 Feb 2007 22:16:13 +0000 (00:16 +0200)
committerRoland Dreier <rolandd@cisco.com>
Fri, 16 Feb 2007 21:57:35 +0000 (13:57 -0800)
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>
drivers/infiniband/ulp/ipoib/ipoib_cm.c

index 8881a717e9da6df753e9e0c9e8db256dbe464e35..4d59682f7d4a39084e61361925c6b7dc0041047c 100644 (file)
@@ -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;
 }