summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/if_rl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index 2e0a9ee..606bf34 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -1891,7 +1891,8 @@ rl_stop(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, 0x0000000);
+ CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(u_int32_t)),
+ 0x0000000);
}
}
OpenPOWER on IntegriCloud