Commit d0725c45 authored by Ganesh Venkatesan's avatar Ganesh Venkatesan Committed by Jeff Garzik

[PATCH] ixgb: Fix memory leak in NAPI mode

Signed-off-by: default avatarGanesh Venkatesan <ganesh.venkatesan@intel.com>
parent 02590d1f
......@@ -1819,6 +1819,12 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter)
while (rx_desc->status & IXGB_RX_DESC_STATUS_DD) {
#ifdef CONFIG_IXGB_NAPI
if(*work_done >= work_to_do)
break;
(*work_done)++;
#endif
skb = buffer_info->skb;
prefetch(skb->data);
......@@ -1836,12 +1842,6 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter)
next_skb = next_buffer->skb;
prefetch(next_skb);
#ifdef CONFIG_IXGB_NAPI
if (*work_done >= work_to_do)
break;
(*work_done)++;
#endif
cleaned = TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment