diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-06-04 19:11:49 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-06-04 19:11:49 +0000 |
commit | eefb725755d07658ededed0ddf38ff5c4cc9481f (patch) | |
tree | 5706a41fce59ee8707a909efc1bc9df2242c62b1 /sys | |
parent | 1041db1394aeef25c3a5a21180b36441f477c69a (diff) |
trying to split some parts;
- tx_start never actually free'd mbufs; oops
report/test/ok jsg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_urtw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/if_urtw.c b/sys/dev/usb/if_urtw.c index bef10ef948b..2cbfd580346 100644 --- a/sys/dev/usb/if_urtw.c +++ b/sys/dev/usb/if_urtw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urtw.c,v 1.7 2009/03/10 09:48:46 kevlo Exp $ */ +/* $OpenBSD: if_urtw.c,v 1.8 2009/06/04 19:11:48 martynas Exp $ */ /*- * Copyright (c) 2008 Weongyo Jeong <weongyo@FreeBSD.org> * @@ -2452,7 +2452,10 @@ urtw_tx_start(struct urtw_softc *sc, struct ieee80211_node *ni, struct mbuf *m0, m_copydata(m0, 0, m0->m_pkthdr.len, (uint8_t *)&data->buf[12]); data->ni = ni; - data->m = m0; + data->m = NULL; + + /* mbuf is no longer needed. */ + m_freem(m0); usbd_setup_xfer(data->xfer, (prior == URTW_PRIORITY_LOW) ? sc->sc_txpipe_low : |