Search Linux Wireless

[PATCH wireless-drivers 0/3] fix multiple issues in mt76u error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix following issues in mt76u initialization error path:
- NULL pointer dereference in mt76u_mcu_deinit
- possible memory leak in mt76u_buf_free
- use-after-free warning since mt76u_queues_deinit is run twice

This series has been tested running mt76x0u driver on rpi3+
(dwc_otg controller does not support SG I/O)

Lorenzo Bianconi (3):
  mt76: usb: fix possible NULL pointer dereference in mt76u_mcu_deinit
  mt76: usb: fix possible memory leak in mt76u_buf_free
  mt76: usb: do not run mt76u_queues_deinit twice

 drivers/net/wireless/mediatek/mt76/usb.c     | 25 ++++++++++----------
 drivers/net/wireless/mediatek/mt76/usb_mcu.c |  8 ++++---
 2 files changed, 17 insertions(+), 16 deletions(-)

-- 
2.20.1




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux