1. 02 2月, 2018 1 次提交
  2. 06 1月, 2018 2 次提交
  3. 12 12月, 2017 1 次提交
  4. 31 10月, 2017 1 次提交
  5. 18 10月, 2017 2 次提交
  6. 15 10月, 2017 1 次提交
  7. 23 8月, 2017 8 次提交
  8. 10 8月, 2017 1 次提交
    • L
      RDMA: Simplify get firmware interface · 9abb0d1b
      Leon Romanovsky 提交于
      There is a need to forward FW version to user space
      application through RDMA netlink. In order to make it safe, there
      is need to declare nla_policy and limit the size of FW string.
      
      The new define IB_FW_VERSION_NAME_MAX will limit the size of
      FW version string. That define was chosen to be equal to
      ETHTOOL_FWVERS_LEN, because many drivers anyway are limited
      by that value indirectly.
      
      The introduction of this define allows us to remove the string size
      from get_fw_str function signature.
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      9abb0d1b
  9. 01 8月, 2017 2 次提交
  10. 06 7月, 2017 1 次提交
  11. 28 6月, 2017 5 次提交
  12. 02 5月, 2017 4 次提交
  13. 29 4月, 2017 4 次提交
  14. 21 4月, 2017 1 次提交
  15. 06 4月, 2017 5 次提交
  16. 19 2月, 2017 1 次提交
    • A
      IB/hfi1: use size_t for passing array length · 64b2ae74
      Arnd Bergmann 提交于
      gcc-7 produces a mysterious warning about the size argument being potentially out
      of range:
      
      drivers/infiniband/hw/hfi1/verbs.c: In function 'init_cntr_names':
      drivers/infiniband/hw/hfi1/verbs.c:1644:2: error: 'memcpy': specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
      
      This seems to refer to a the case where an 64-bit size_t gets truncated
      into a negative 'int' and subsequently turned into a high 64-bit number
      again.
      
      The fix is clearly to use size_t here, which matches the type that gets
      used for this value elsewhere.
      
      Fixes: b7481944 ("IB/hfi1: Show statistics counters under IB stats interface")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      64b2ae74