diff --git a/sys/src/cmd/nusb/ether/lan78xx.c b/sys/src/cmd/nusb/ether/lan78xx.c index 38e77e4a4..3f7c1d190 100644 --- a/sys/src/cmd/nusb/ether/lan78xx.c +++ b/sys/src/cmd/nusb/ether/lan78xx.c @@ -252,11 +252,10 @@ lan78xxreceive(Dev *ep) break; if((hd & Rxerror) == 0){ if(n == BLEN(b)){ - b->wp -= 4; etheriq(b); return 0; } - etheriq(copyblock(b, n - 4)); + etheriq(copyblock(b, n)); } b->rp = (uchar*)(((uintptr)b->rp + n + 3)&~3); }