]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
ioemu: ne2k buffer full bug fix, by Marcel Block.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Mar 2008 15:41:24 +0000 (16:41 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Mar 2008 15:41:24 +0000 (16:41 +0100)
Backport from qemu upstream.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   17317:d686808b316903120473833738957c049765f49c
xen-unstable date:        Fri Mar 28 11:17:11 2008 +0000

tools/ioemu/hw/ne2000.c

index a8bffc74dd1805891e6a1210a1447ec7c1d92653..90ce0980b076dbd6f3bf09663a30e915d169f35f 100644 (file)
@@ -207,7 +207,7 @@ static int ne2000_buffer_full(NE2000State *s)
 
     index = s->curpag << 8;
     boundary = s->boundary << 8;
-    if (index <= boundary)
+    if (index < boundary)
         avail = boundary - index;
     else
         avail = (s->stop - s->start) - (index - boundary);