Commit 28c1c656333251dd68c125fcf27d454bb1b94612
1 parent
687fa640
ne2k buffer full bug fix, by Marcel Block.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2581 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/ne2000.c
@@ -206,7 +206,7 @@ static int ne2000_buffer_full(NE2000State *s) | @@ -206,7 +206,7 @@ static int ne2000_buffer_full(NE2000State *s) | ||
206 | 206 | ||
207 | index = s->curpag << 8; | 207 | index = s->curpag << 8; |
208 | boundary = s->boundary << 8; | 208 | boundary = s->boundary << 8; |
209 | - if (index <= boundary) | 209 | + if (index < boundary) |
210 | avail = boundary - index; | 210 | avail = boundary - index; |
211 | else | 211 | else |
212 | avail = (s->stop - s->start) - (index - boundary); | 212 | avail = (s->stop - s->start) - (index - boundary); |