summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-03-08 17:01:03 +0000
committersam <sam@FreeBSD.org>2005-03-08 17:01:03 +0000
commit85fe22a55b05887b98961887cc7f2adc931a8313 (patch)
tree5c11a8bd9d5adcce83203ba132e95bf1d89bf4a4 /sys/dev/wi
parent29c09959986c1ae26b219b240e9e00ab79e89524 (diff)
downloadFreeBSD-src-85fe22a55b05887b98961887cc7f2adc931a8313.zip
FreeBSD-src-85fe22a55b05887b98961887cc7f2adc931a8313.tar.gz
reclaim mbuf chain when ieee80211_crypto_encap fails
Noticed by: David Young
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 4c77f9e..ca49c96 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -961,6 +961,7 @@ wi_start(struct ifnet *ifp)
if (k == NULL) {
if (ni != NULL)
ieee80211_free_node(ni);
+ m_freem(m0);
continue;
}
frmhdr.wi_tx_ctl |= htole16(WI_TXCNTL_NOCRYPT);
OpenPOWER on IntegriCloud