From 4a1ff07b39d4ddc113a10e401540ff5323875ef5 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon <yongari@FreeBSD.org> Date: Thu, 18 Feb 2016 03:05:08 +0000 Subject: [PATCH] Fix a bug introduced in r295736 TX descriptor address should be updated for valid chain. Pointed out by: jmallett --- sys/dev/rl/if_rl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/rl/if_rl.c b/sys/dev/rl/if_rl.c index bc23125e5e29..d9b79396b7c4 100644 --- a/sys/dev/rl/if_rl.c +++ b/sys/dev/rl/if_rl.c @@ -1945,8 +1945,9 @@ rl_stop(struct rl_softc *sc) sc->rl_cdata.rl_tx_dmamap[i]); m_freem(sc->rl_cdata.rl_tx_chain[i]); sc->rl_cdata.rl_tx_chain[i] = NULL; + CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(uint32_t)), + 0x0000000); } - CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(uint32_t)), 0x0000000); } }