Commit f815fa45da704086eafbab1709e85be5dc727f4b

Authored by bellard
1 parent 3512779a

ne2000 buffer fulness fix (Han Zhu)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1924 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 206  
207 207 index = s->curpag << 8;
208 208 boundary = s->boundary << 8;
209   - if (index < boundary)
  209 + if (index <= boundary)
210 210 avail = boundary - index;
211 211 else
212 212 avail = (s->stop - s->start) - (index - boundary);
... ...