diff options
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 30e6d4b8d564..e33dfc0165f6 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -527,7 +527,7 @@ static int rxq_process(struct rx_queue *rxq, int budget) | |||
527 | int rx; | 527 | int rx; |
528 | 528 | ||
529 | rx = 0; | 529 | rx = 0; |
530 | while (rx < budget) { | 530 | while (rx < budget && rxq->rx_desc_count) { |
531 | struct rx_desc *rx_desc; | 531 | struct rx_desc *rx_desc; |
532 | unsigned int cmd_sts; | 532 | unsigned int cmd_sts; |
533 | struct sk_buff *skb; | 533 | struct sk_buff *skb; |