提交 2e87c5b9 编写于 作者: J Jan Kiszka 提交者: Anthony Liguori

musicpal: Catch null TX qeueues

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: NJan Kiszka <jan.kiszka@web.de>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 0cb892aa
...@@ -238,7 +238,9 @@ static void eth_send(mv88w8618_eth_state *s, int queue_index) ...@@ -238,7 +238,9 @@ static void eth_send(mv88w8618_eth_state *s, int queue_index)
uint8_t buf[2048]; uint8_t buf[2048];
int len; int len;
if (!desc_addr) {
return;
}
do { do {
eth_tx_desc_get(desc_addr, &desc); eth_tx_desc_get(desc_addr, &desc);
if (desc.cmdstat & MP_ETH_TX_OWN) { if (desc.cmdstat & MP_ETH_TX_OWN) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册