search for: cplus_txbuffer_len

Displaying 1 result from an estimated 1 matches for "cplus_txbuffer_len".

2006 Nov 15
3
qemu/rtl8139: Max transmit frame size
...emu/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) + free(s->cplus_txbuffer); + s-&...