From b4877f07bf57a0db94c2e2e0547ab834bfdc43ca Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Thu, 2 Jun 2011 09:26:00 +0800 Subject: [PATCH] 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 --- sys/dev/netif/rl/if_rl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 { -- 1.7.7.2