aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-11-20 19:44:00 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-20 19:44:00 -0500
commit6ab33d51713d6d60c7677c0d020910a8cb37e513 (patch)
tree546c2ff099b2757e75cf34ddace874f1220f740e /drivers/net/mv643xx_eth.c
parent7be6065b39c3f1cfa796667eac1a2170465acc91 (diff)
parent13d428afc007fcfcd6deeb215618f54cf9c0cae6 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/ixgbe/ixgbe_main.c include/net/mac80211.h net/phonet/af_phonet.c
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r--drivers/net/mv643xx_eth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index b56fdf0dc875..7253a499d9c8 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -906,7 +906,8 @@ static int txq_reclaim(struct tx_queue *txq, int budget, int force)
906 if (skb != NULL) { 906 if (skb != NULL) {
907 if (skb_queue_len(&mp->rx_recycle) < 907 if (skb_queue_len(&mp->rx_recycle) <
908 mp->default_rx_ring_size && 908 mp->default_rx_ring_size &&
909 skb_recycle_check(skb, mp->skb_size)) 909 skb_recycle_check(skb, mp->skb_size +
910 dma_get_cache_alignment() - 1))
910 __skb_queue_head(&mp->rx_recycle, skb); 911 __skb_queue_head(&mp->rx_recycle, skb);
911 else 912 else
912 dev_kfree_skb(skb); 913 dev_kfree_skb(skb);
@@ -2478,8 +2479,8 @@ static int mv643xx_eth_shared_remove(struct platform_device *pdev)
2478 struct mv643xx_eth_shared_platform_data *pd = pdev->dev.platform_data; 2479 struct mv643xx_eth_shared_platform_data *pd = pdev->dev.platform_data;
2479 2480
2480 if (pd == NULL || pd->shared_smi == NULL) { 2481 if (pd == NULL || pd->shared_smi == NULL) {
2481 mdiobus_free(msp->smi_bus);
2482 mdiobus_unregister(msp->smi_bus); 2482 mdiobus_unregister(msp->smi_bus);
2483 mdiobus_free(msp->smi_bus);
2483 } 2484 }
2484 if (msp->err_interrupt != NO_IRQ) 2485 if (msp->err_interrupt != NO_IRQ)
2485 free_irq(msp->err_interrupt, msp); 2486 free_irq(msp->err_interrupt, msp);