diff options
author | José Pekkarinen <jose.pekkarinen@nokia.com> | 2015-10-16 09:46:11 +0300 |
---|---|---|
committer | José Pekkarinen <jose.pekkarinen@nokia.com> | 2015-10-16 09:46:11 +0300 |
commit | 342fa5dfa053559f47caad657132522496dcf1b3 (patch) | |
tree | 0c5aec1a29aa36c0cb5272838435671af4279228 /qemu/hw/net/e1000.c | |
parent | fdb8b20906f3546ba6c2f9f0686d8a5189516ba3 (diff) |
These changes comes from the qemu version 2.4.0.1 bugfix release,
taken from the official qemu wiki page. No further changes included.
Change-Id: I690a0aba6a986291252e766c60cf1fbea9a0cd46
Signed-off-by: José Pekkarinen <jose.pekkarinen@nokia.com>
Diffstat (limited to 'qemu/hw/net/e1000.c')
-rw-r--r-- | qemu/hw/net/e1000.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu/hw/net/e1000.c b/qemu/hw/net/e1000.c index 5c6bcd001..09c9e9d53 100644 --- a/qemu/hw/net/e1000.c +++ b/qemu/hw/net/e1000.c @@ -740,7 +740,8 @@ process_tx_desc(E1000State *s, struct e1000_tx_desc *dp) memmove(tp->data, tp->header, tp->hdr_len); tp->size = tp->hdr_len; } - } while (split_size -= bytes); + split_size -= bytes; + } while (bytes && split_size); } else if (!tp->tse && tp->cptse) { // context descriptor TSE is not set, while data descriptor TSE is set DBGOUT(TXERR, "TCP segmentation error\n"); |