diff options
author | Vladislav Zolotarov <vladz@broadcom.com> | 2011-05-22 14:06:58 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-23 05:01:22 +0400 |
commit | 40955532bc9d865999dfc58b7896605d58650655 (patch) | |
tree | fad93cc9a965328419afa9e3e511864893b8f289 /drivers/net/bnx2x/bnx2x_cmn.h | |
parent | 792d4b5cb16b684958c2590f77688667ddec1f61 (diff) | |
download | linux-40955532bc9d865999dfc58b7896605d58650655.tar.xz |
bnx2x: call dev_kfree_skb_any instead of dev_kfree_skb
replace function calls when possible call in both irq/non-irq contexts
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_cmn.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_cmn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_cmn.h b/drivers/net/bnx2x/bnx2x_cmn.h index fab161e8030d..1a3545bd8a92 100644 --- a/drivers/net/bnx2x/bnx2x_cmn.h +++ b/drivers/net/bnx2x/bnx2x_cmn.h @@ -840,7 +840,7 @@ static inline int bnx2x_alloc_rx_skb(struct bnx2x *bp, mapping = dma_map_single(&bp->pdev->dev, skb->data, fp->rx_buf_size, DMA_FROM_DEVICE); if (unlikely(dma_mapping_error(&bp->pdev->dev, mapping))) { - dev_kfree_skb(skb); + dev_kfree_skb_any(skb); return -ENOMEM; } |