freebsd-skq/sys/dev/bwn
Mark Johnston c2a5a6c17d Fix a possible mbuf double free in bwn_dma_tx_start().
If bus_dmamap_load_mbuf() fails following a defrag, the caller of
bwn_dma_tx_start() would free the original mbuf after m_defrag() had
already done so.  Fix this by returning the defragged mbuf to the
caller instead.  Update bwn_pio_tx_start() similarly for consistency.

Reported by:	Ilja Van Sprundel <ivansprundel@ioactive.com>
Reviewed by:	landonf
Tested by:	landonf
MFC after:	3 days
admbug:		820
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D18342
2018-12-12 15:49:14 +00:00
..
if_bwn_cordic.h [bwn] add an implementation of "cordic" and imaginary math. 2016-05-14 23:33:13 +00:00
if_bwn_debug.h bwn(4): Conditionalize "RX decryption attempted" message on a new 2018-02-13 20:07:40 +00:00
if_bwn_misc.h bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00
if_bwn_pci.c Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
if_bwn_pcivar.h bhnd/bwn(4): Define a bhnd(4) softmodem device class for the v.90 modem 2018-01-19 22:43:08 +00:00
if_bwn_phy_common.c bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00
if_bwn_phy_common.h bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00
if_bwn_phy_g.c bwn(4): Fix outstanding bug in PHY-G tssi2dbm table generation caught by 2018-02-12 22:21:11 +00:00
if_bwn_phy_g.h [bwn] add new types, prepare for PHY-N; prepare for rev 5xx firmware. 2016-05-14 23:38:21 +00:00
if_bwn_phy_lp.c bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00
if_bwn_phy_lp.h [bwn] break out the LP PHY code into a separate file. 2016-05-02 21:06:02 +00:00
if_bwn_phy_n.c bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00
if_bwn_phy_n.h [bwn] add PHY-N glue. 2016-05-17 07:11:12 +00:00
if_bwn_util.c bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00
if_bwn_util.h [bwn] add Q52 macros. 2016-05-14 20:09:37 +00:00
if_bwn.c Fix a possible mbuf double free in bwn_dma_tx_start(). 2018-12-12 15:49:14 +00:00
if_bwnreg.h bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00
if_bwnvar.h bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. 2018-02-05 23:38:15 +00:00