aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-02 08:19:57 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-02 08:19:57 +0000
commit28c1c656333251dd68c125fcf27d454bb1b94612 (patch)
tree9e23869a7f896dcc8aefe1470e83f6e09513e5cf /hw
parent687fa640d49ce19b9b9a2258fde19e1500bfabb4 (diff)
ne2k buffer full bug fix, by Marcel Block.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2581 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/ne2000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ne2000.c b/hw/ne2000.c
index a045a20430..df3f3b54a2 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);