Musicpal: Fix descriptor walk in eth_send
commit07b064e9de65a26a4cb36dfb37c7506ef17407fd
authorJan Kiszka <jan.kiszka@web.de>
Sun, 24 Jan 2010 08:51:49 +0000 (24 09:51 +0100)
committermalc <av1474@comtv.ru>
Sun, 24 Jan 2010 13:55:20 +0000 (24 16:55 +0300)
treed80665a9f72d692fa6506254487769efc42899f6
parent642582296479eabded45f262acbfea5121d2fbf8
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>
hw/musicpal.c