[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cdi-devel] [PATCH 3/7] e1000: Fix error path for full TX queue



! e1000: If we don't queue a new packet, we must not advance the
  tx_cur_buffer either.

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 e1000/device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/e1000/device.c b/e1000/device.c
index c4709ae..ca516cf 100644
--- a/e1000/device.c
+++ b/e1000/device.c
@@ -447,6 +447,7 @@ void e1000_send_packet(struct cdi_net_device* device, void* data, size_t size)
     head = reg_inl(netcard, REG_TXDESC_HEAD);
     if (netcard->tx_cur_buffer == head) {
         printf("e1000: Kein Platz in der Sendewarteschlange!\n");
+        netcard->tx_cur_buffer = cur;
         return;
     }
 
-- 
2.1.4