1. 05 11月, 2019 1 次提交
    • A
      net: of_get_phy_mode: Change API to solve int/unit warnings · 0c65b2b9
      Andrew Lunn 提交于
      Before this change of_get_phy_mode() returned an enum,
      phy_interface_t. On error, -ENODEV etc, is returned. If the result of
      the function is stored in a variable of type phy_interface_t, and the
      compiler has decided to represent this as an unsigned int, comparision
      with -ENODEV etc, is a signed vs unsigned comparision.
      
      Fix this problem by changing the API. Make the function return an
      error, or 0 on success, and pass a pointer, of type phy_interface_t,
      where the phy mode should be stored.
      
      v2:
      Return with *interface set to PHY_INTERFACE_MODE_NA on error.
      Add error checks to all users of of_get_phy_mode()
      Fixup a few reverse christmas tree errors
      Fixup a few slightly malformed reverse christmas trees
      
      v3:
      Fix 0-day reported errors.
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0c65b2b9
  2. 29 10月, 2019 1 次提交
  3. 23 10月, 2019 2 次提交
  4. 01 10月, 2019 1 次提交
  5. 27 9月, 2019 1 次提交
  6. 07 8月, 2019 1 次提交
    • N
      net: dsa: qca8k: Add of_node_put() in qca8k_setup_mdio_bus() · f26e0cca
      Nishka Dasgupta 提交于
      Each iteration of for_each_available_child_of_node() puts the previous
      node, but in the case of a return from the middle of the loop, there
      is no put, thus causing a memory leak. Hence add an of_node_put() before
      the return.
      Additionally, the local variable ports in the function
      qca8k_setup_mdio_bus() takes the return value of of_get_child_by_name(),
      which gets a node but does not put it. If the function returns without
      putting ports, it may cause a memory leak. Hence put ports before the
      mid-loop return statement, and also outside the loop after its last usage
      in this function.
      Issues found with Coccinelle.
      Signed-off-by: NNishka Dasgupta <nishkadg.linux@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f26e0cca
  7. 31 7月, 2019 1 次提交
  8. 13 7月, 2019 1 次提交
  9. 28 6月, 2019 1 次提交
  10. 27 3月, 2019 2 次提交
  11. 25 2月, 2019 1 次提交
  12. 20 2月, 2019 1 次提交
  13. 23 1月, 2019 1 次提交
  14. 22 10月, 2018 1 次提交
  15. 24 5月, 2018 6 次提交
  16. 27 4月, 2018 1 次提交
  17. 05 3月, 2018 1 次提交
  18. 13 11月, 2017 1 次提交
  19. 27 10月, 2017 2 次提交
  20. 18 10月, 2017 1 次提交
  21. 22 9月, 2017 1 次提交
  22. 30 8月, 2017 1 次提交
  23. 08 8月, 2017 3 次提交
  24. 02 8月, 2017 7 次提交