be2net: Fix race in posting rx buffers.
[pandora-kernel.git] / drivers / net / ethernet / emulex / benet / be_main.c
index ef62594..09eb699 100644 (file)
@@ -1862,7 +1862,7 @@ loop_continue:
        }
 
        /* Refill the queue */
-       if (atomic_read(&rxo->q.used) < RX_FRAGS_REFILL_WM)
+       if (work_done && atomic_read(&rxo->q.used) < RX_FRAGS_REFILL_WM)
                be_post_rx_frags(rxo, GFP_ATOMIC);
 
        /* All consumed */