From: Keir Fraser Date: Fri, 28 Mar 2008 11:17:11 +0000 (+0000) Subject: ioemu: ne2k buffer full bug fix, by Marcel Block. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14234^2~20 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=81a6d23da7cc43d27fd67cd4dd34341cd923e408;p=xen.git ioemu: ne2k buffer full bug fix, by Marcel Block. Backport from qemu upstream. Signed-off-by: Christoph Egger --- diff --git a/tools/ioemu/hw/ne2000.c b/tools/ioemu/hw/ne2000.c index 89126a875f..977d202921 100644 --- a/tools/ioemu/hw/ne2000.c +++ b/tools/ioemu/hw/ne2000.c @@ -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);