ia64/xen-unstable

changeset 17347:d686808b3169

ioemu: ne2k buffer full bug fix, by Marcel Block.

Backport from qemu upstream.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 28 11:17:11 2008 +0000 (2008-03-28)
parents abae878a65f4
children b5fea3aeb04b
files tools/ioemu/hw/ne2000.c
line diff
     1.1 --- a/tools/ioemu/hw/ne2000.c	Fri Mar 28 11:15:43 2008 +0000
     1.2 +++ b/tools/ioemu/hw/ne2000.c	Fri Mar 28 11:17:11 2008 +0000
     1.3 @@ -207,7 +207,7 @@ static int ne2000_buffer_full(NE2000Stat
     1.4  
     1.5      index = s->curpag << 8;
     1.6      boundary = s->boundary << 8;
     1.7 -    if (index <= boundary)
     1.8 +    if (index < boundary)
     1.9          avail = boundary - index;
    1.10      else
    1.11          avail = (s->stop - s->start) - (index - boundary);