1. 09 3月, 2021 3 次提交
  2. 24 2月, 2021 4 次提交
  3. 22 2月, 2021 2 次提交
    • S
      Revert "ath9k: fix ath_tx_process_buffer() potential null ptr dereference" · 14ebaeef
      Shuah Khan 提交于
      This reverts commit a56c14bb.
      
      ath_tx_process_buffer() doesn't dereference or check sta and passes it
      to ath_tx_complete_aggr() and ath_tx_complete_buf().
      
      ath_tx_complete_aggr() checks the pointer before use. No problem here.
      
      ath_tx_complete_buf() doesn't check or dereference sta and passes it on
      to ath_tx_complete(). ath_tx_complete() doesn't check or dereference sta,
      but assigns it to tx_info->status.status_driver_data[0]
      
      ath_tx_complete_buf() is called from ath_tx_complete_aggr() passing
      null ieee80211_sta pointer.
      
      There is a potential for dereference later on, if and when the
      tx_info->status.status_driver_data[0]is referenced. In addition, the
      rcu read lock might be released before referencing the contents.
      
      ath_tx_complete_buf() should be fixed to check sta perhaps? Worth
      looking into.
      
      Reverting this patch because it doesn't solve the problem and introduces
      memory leak by skipping buffer completion if the pointer (sta) is NULL.
      
      Fixes: a56c14bb ("ath9k: fix ath_tx_process_buffer() potential null ptr dereference")
      Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/20210217211801.22540-1-skhan@linuxfoundation.org
      14ebaeef
    • K
      ath11k: print hardware name and version during initialisation · 6b7abacb
      Kalle Valo 提交于
      This way it's easy for the user to find what device is actually installed. This
      also helps reporting bugs.
      
      Screenshot:
      
      [  459.988812] ath11k_pci 0000:06:00.0: BAR 0: assigned [mem 0xdb000000-0xdbffffff 64bit]
      [  459.988867] ath11k_pci 0000:06:00.0: enabling device (0000 -> 0002)
      [  459.997048] ath11k_pci 0000:06:00.0: qca6390 hw2.0
      [  460.058093] mhi mhi0: Requested to power ON
      [  460.059741] mhi mhi0: Power on setup success
      [  460.476924] ath11k_pci 0000:06:00.0: chip_id 0x0 chip_family 0xb board_id 0xff soc_id 0xffffffff
      [  460.477032] ath11k_pci 0000:06:00.0: fw_version 0x101c06cc fw_build_timestamp 2020-06-24 19:50 fw_build_id
      
      Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/1613589400-18891-1-git-send-email-kvalo@codeaurora.org
      6b7abacb
  4. 18 2月, 2021 2 次提交
  5. 17 2月, 2021 11 次提交
  6. 16 2月, 2021 2 次提交
  7. 13 2月, 2021 16 次提交