Displaying 1 result from an estimated 1 matches for "txsize".
Did you mean:
xsize
2006 Nov 15
3
qemu/rtl8139: Max transmit frame size
...26d4091322 tools/ioemu/hw/rtl8139.c
--- a/tools/ioemu/hw/rtl8139.c Tue Nov 14 18:52:58 2006 +0000
+++ b/tools/ioemu/hw/rtl8139.c Wed Nov 15 15:35:24 2006 +1100
@@ -2001,8 +2001,13 @@ static int rtl8139_cplus_transmit_one(RT
while (s->cplus_txbuffer && s->cplus_txbuffer_offset + txsize >= s->cplus_txbuffer_len)
{
+ void *txbuffer;
+
s->cplus_txbuffer_len += CP_TX_BUFFER_SIZE;
- s->cplus_txbuffer = realloc(s->cplus_txbuffer, s->cplus_txbuffer_len);
+ txbuffer = realloc(s->cplus_txbuffer, s->cplus_txbuffer_len);
+ if (!txbuffer)
+ fr...