1. 20 7月, 2016 1 次提交
  2. 15 3月, 2016 1 次提交
    • A
      ath9k: fix buffer overrun for ar9287 · 83d6f1f1
      Arnd Bergmann 提交于
      Code that was added back in 2.6.38 has an obvious overflow
      when accessing a static array, and at the time it was added
      only a code comment was put in front of it as a reminder
      to have it reviewed properly.
      
      This has not happened, but gcc-6 now points to the specific
      overflow:
      
      drivers/net/wireless/ath/ath9k/eeprom.c: In function 'ath9k_hw_get_gain_boundaries_pdadcs':
      drivers/net/wireless/ath/ath9k/eeprom.c:483:44: error: array subscript is above array bounds [-Werror=array-bounds]
           maxPwrT4[i] = data_9287[idxL].pwrPdg[i][4];
                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
      
      It turns out that the correct array length exists in the local
      'intercepts' variable of this function, so we can just use that
      instead of hardcoding '4', so this patch changes all three
      instances to use that variable. The other two instances were
      already correct, but it's more consistent this way.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 940cd2c1 ("ath9k_hw: merge the ar9287 version of ath9k_hw_get_gain_boundaries_pdadcs")
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      83d6f1f1
  3. 25 1月, 2016 1 次提交
  4. 07 1月, 2016 1 次提交
  5. 08 12月, 2015 1 次提交
    • M
      ath9k: Simplify and fix eeprom endianness swapping · 6fa658fd
      Martin Blumenstingl 提交于
      The three eeprom implementations had quite some duplicate code when it
      came to endianness swapping.
      Additionally there was a bug in eeprom_4k and eeprom_9287 which
      prevented the endianness swapping from working correctly, because the
      swapping code was guarded within an "if (!ath9k_hw_use_flash(ah))". In
      eeprom_def this check did not exist, so it seems that eeprom_def was the
      only implementation where endianness swapping worked.
      
      This patch takes the duplicate code and moves it from eeprom_* to
      eeprom.c. The new code is derived from eeprom_def, while taking into
      account the specifics from the other implementations.
      Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      6fa658fd
  6. 30 3月, 2015 1 次提交
  7. 11 12月, 2012 4 次提交
  8. 18 4月, 2012 2 次提交
  9. 17 4月, 2012 2 次提交
  10. 20 12月, 2011 1 次提交
  11. 20 9月, 2011 1 次提交
  12. 20 5月, 2011 1 次提交
  13. 20 1月, 2011 1 次提交
  14. 14 12月, 2010 3 次提交
  15. 08 12月, 2010 1 次提交
  16. 03 12月, 2010 1 次提交
  17. 04 6月, 2010 2 次提交
  18. 14 5月, 2010 1 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
  19. 17 4月, 2010 3 次提交
  20. 08 10月, 2009 1 次提交
  21. 29 8月, 2009 1 次提交
  22. 14 8月, 2009 4 次提交
  23. 05 8月, 2009 4 次提交
  24. 28 7月, 2009 1 次提交