mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 07:32:06 -06:00
ne2k buffer full bug fix, by Marcel Block.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2581 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
687fa640d4
commit
28c1c65633
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ static int ne2000_buffer_full(NE2000State *s)
|
||||||
|
|
||||||
index = s->curpag << 8;
|
index = s->curpag << 8;
|
||||||
boundary = s->boundary << 8;
|
boundary = s->boundary << 8;
|
||||||
if (index <= boundary)
|
if (index < boundary)
|
||||||
avail = boundary - index;
|
avail = boundary - index;
|
||||||
else
|
else
|
||||||
avail = (s->stop - s->start) - (index - boundary);
|
avail = (s->stop - s->start) - (index - boundary);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue