]> git.proxmox.com Git - qemu.git/commitdiff
musicpal: Catch null TX qeueues
authorJan Kiszka <jan.kiszka@web.de>
Fri, 18 Sep 2009 18:51:22 +0000 (20:51 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:43 +0000 (09:32 -0500)
They likely represent invalid queues that should be skipped. We already
do this for RX queues. Wish I had a spec...

Credits go to malc for analyzing the issue and suggesting this fix.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/musicpal.c

index 1c4f17cb90b0f638a4b99e8f3c62489c727258ef..c8f0235981cb7c269aafdd7c0e2c4d5cca8b2096 100644 (file)
@@ -238,7 +238,9 @@ static void eth_send(mv88w8618_eth_state *s, int queue_index)
     uint8_t buf[2048];
     int len;
 
-
+    if (!desc_addr) {
+        return;
+    }
     do {
         eth_tx_desc_get(desc_addr, &desc);
         if (desc.cmdstat & MP_ETH_TX_OWN) {