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