Musicpal: Fix descriptor walk in eth_send
commiteb05143e244fb7abb720a1fd1c90d5317125e023
authorJan Kiszka <jan.kiszka@web.de>
Sun, 24 Jan 2010 08:51:49 +0000 (24 09:51 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 22:20:20 +0000 (26 16:20 -0600)
tree4c4ee6225db53d64b93b5637738bea43b92593f7
parent0c709e6195468e97f1e042bb4c5ef2b5c8661d04
Musicpal: Fix descriptor walk in eth_send

Commit 930c86820e introduced a regression to eth_send: eth_tx_desc_put
manipulates the host's tx descriptor copy before writing it back, but
two lines down the descriptor is evaluated again, leaving us with an
invalid next address if host and guest endianness differ. So this was
the actual issue commit 2e87c5b937 tried to paper over.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: malc <av1474@comtv.ru>
(cherry picked from commit 07b064e9de65a26a4cb36dfb37c7506ef17407fd)

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/musicpal.c