aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1998-10-10 19:26:40 +0000
committerDavid Greenman <dg@FreeBSD.org>1998-10-10 19:26:40 +0000
commitda91462d5e0540c530c514766e2e43aad06ef431 (patch)
tree5365132fcf2cd6f69a5da259f815acb8e462bef6 /sys/dev
parent46ccc3e9325d53b452c75fee49f86015cfea97a8 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fxp/if_fxp.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index faf83fb592aa..50527d4f3995 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_fxp.c,v 1.54 1998/08/02 00:33:38 dg Exp $
+ * $Id: if_fxp.c,v 1.55 1998/08/04 08:53:12 dg Exp $
*/
/*
@@ -1169,10 +1169,14 @@ fxp_stop(sc)
/*
* Release any xmit buffers.
*/
- for (txp = sc->cbl_first; txp != NULL && txp->mb_head != NULL;
- txp = txp->next) {
- m_freem(txp->mb_head);
- txp->mb_head = NULL;
+ txp = sc->cbl_base;
+ if (txp != NULL) {
+ for (i = 0; i < FXP_NTXCB; i++) {
+ if (txp[i].mb_head != NULL) {
+ m_freem(txp[i].mb_head);
+ txp[i].mb_head = NULL;
+ }
+ }
}
sc->tx_queued = 0;