Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael S. Tsirkin and committed by
Roland Dreier
8a2e65f8 c52daa29

+1 -1
+1 -1
drivers/infiniband/ulp/ipoib/ipoib_cm.c
··· 145 145 for (; i >= 0; --i) 146 146 ib_dma_unmap_single(priv->ca, mapping[i + 1], PAGE_SIZE, DMA_FROM_DEVICE); 147 147 148 - kfree_skb(skb); 148 + dev_kfree_skb_any(skb); 149 149 return -ENOMEM; 150 150 } 151 151