freebsd-dev/sys/dev/urtwn
Andriy Voskoboinyk 532a0e9ca0 urtwn: fix memory leak on device restart
Free data buffers every time when device is stopped, not when
it is detached; they are allocated at the initialization stage.

How-to-reproduce:
1) ifconfig wlan0 create wlandev urtwn0 up
2) vmstat -m | grep USBdev
3) service netif restart
4) vmstat -m | grep USBdev

Also, remove usbd_transfer_drain() call; it is already called by
usbd_transfer_unsetup().

Tested with RTL8188CUS, STA mode.

Approved by:	re (marius)
2016-06-24 23:36:22 +00:00
..
if_urtwn.c urtwn: fix memory leak on device restart 2016-06-24 23:36:22 +00:00
if_urtwnreg.h urtwn, rtwn, rsu: switch to ieee80211_add_channel_list_2ghz(). 2016-05-26 16:39:11 +00:00
if_urtwnvar.h urtwn: reinstall group keys on every device startup. 2016-06-09 21:19:46 +00:00