1. 06 10月, 2018 1 次提交
    • L
      iwlwifi: mvm: check for n_profiles validity in EWRD ACPI · 2e1976bb
      Luca Coelho 提交于
      When reading the profiles from the EWRD table in ACPI, we loop over
      the data and set it into our internal table.  We use the number of
      profiles specified in ACPI without checking its validity, so if the
      ACPI table is corrupted and the number is larger than our array size,
      we will try to make an out-of-bounds access.
      
      Fix this by making sure the value specified in the ACPI table is
      valid.
      
      Fixes: 69964905 ("iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table")
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      2e1976bb
  2. 01 10月, 2018 1 次提交
    • N
      ipw2x00: Remove unnecessary parentheses · c15ace86
      Nathan Chancellor 提交于
      Clang warns when multiple pairs of parentheses are used for a single
      conditional statement.
      
      drivers/net/wireless/intel/ipw2x00/ipw2200.c:5655:28: warning: equality
      comparison with extraneous parentheses [-Wparentheses-equality]
                      if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) {
                           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
      drivers/net/wireless/intel/ipw2x00/ipw2200.c:5655:28: note: remove
      extraneous parentheses around the comparison to silence this warning
                      if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) {
                          ~                    ^               ~
      drivers/net/wireless/intel/ipw2x00/ipw2200.c:5655:28: note: use '=' to
      turn this equality comparison into an assignment
                      if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) {
                                               ^~
                                               =
      1 warning generated.
      
      Link: https://github.com/ClangBuiltLinux/linux/issues/134Signed-off-by: NNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      c15ace86
  3. 28 9月, 2018 32 次提交
  4. 05 9月, 2018 1 次提交
  5. 31 8月, 2018 5 次提交