From: ths Date: Mon, 2 Apr 2007 08:19:57 +0000 (+0000) Subject: ne2k buffer full bug fix, by Marcel Block. X-Git-Tag: release_0_9_1~1316 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28c1c656333251dd68c125fcf27d454bb1b94612;p=thirdparty%2Fqemu.git ne2k buffer full bug fix, by Marcel Block. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2581 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/hw/ne2000.c b/hw/ne2000.c index a045a204307..df3f3b54a27 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -206,7 +206,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);