Message ID | 1474465525-31581-1-git-send-email-ppandit@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index e60e338..31870b0 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -276,7 +276,7 @@ static void imx_fec_do_tx(IMXFECState *s) imx_fec_read_bd(&bd, addr); FEC_PRINTF("tx_bd %x flags %04x len %d data %08x\n", addr, bd.flags, bd.length, bd.data); - if ((bd.flags & FEC_BD_R) == 0) { + if (!bd.length || (bd.flags & FEC_BD_R) == 0) { /* Run out of descriptors to transmit. */ break; }