Skip to content

Commit 8a2e65f

Browse files
Michael S. TsirkinRoland Dreier
authored andcommitted
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>
1 parent c52daa2 commit 8a2e65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/ulp/ipoib/ipoib_cm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static int ipoib_cm_alloc_rx_skb(struct net_device *dev, int id,
145145
for (; i >= 0; --i)
146146
ib_dma_unmap_single(priv->ca, mapping[i + 1], PAGE_SIZE, DMA_FROM_DEVICE);
147147

148-
kfree_skb(skb);
148+
dev_kfree_skb_any(skb);
149149
return -ENOMEM;
150150
}
151151

0 commit comments

Comments
 (0)