1. 03 Apr, 2019 38 commits
  2. 27 Mar, 2019 2 commits
    • Greg Kroah-Hartman's avatar
      Linux 4.14.109 · 1848c32f
      Greg Kroah-Hartman authored
      1848c32f
    • Arnd Bergmann's avatar
      ath10k: avoid possible string overflow · 0cc17a7a
      Arnd Bergmann authored
      commit 6707ba01 upstream.
      
      The way that 'strncat' is used here raised a warning in gcc-8:
      
      drivers/net/wireless/ath/ath10k/wmi.c: In function 'ath10k_wmi_tpc_stats_final_disp_tables':
      drivers/net/wireless/ath/ath10k/wmi.c:4649:4: error: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
      
      Effectively, this is simply a strcat() but the use of strncat() suggests
      some form of overflow check. Regardless of whether this might actually
      overflow, using strlcat() instead of strncat() avoids the warning and
      makes the code more robust.
      
      Fixes: bc64d052 ("ath10k: debugfs support to get final TPC stats for 10.4 variants")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0cc17a7a