From: Sepherosa Ziehau Date: Thu, 2 Jun 2011 01:26:00 +0000 (+0800) Subject: rl(4): Fix an old typo X-Git-Tag: v2.12.0~519 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b4877f07bf57a0db94c2e2e0547ab834bfdc43ca rl(4): Fix an old typo If receiving buffer wrapping happens, the first size of copy should be the size of the buffer at the end of the receiving buffer. DragonFly-Bug: http://bugs.dragonflybsd.org/issue2083 --- diff --git a/sys/dev/netif/rl/if_rl.c b/sys/dev/netif/rl/if_rl.c index 9663a3d..bc90a70 100644 --- a/sys/dev/netif/rl/if_rl.c +++ b/sys/dev/netif/rl/if_rl.c @@ -1054,7 +1054,7 @@ rl_rxeof(struct rl_softc *sc) * the data. */ m = m_devget(rxbufpos - RL_ETHER_ALIGN, - total_len + RL_ETHER_ALIGN, 0, ifp, NULL); + wrap + RL_ETHER_ALIGN, 0, ifp, NULL); if (m == NULL) { ifp->if_ierrors++; } else {