1. 27 9月, 2019 1 次提交
  2. 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
  3. 31 7月, 2019 1 次提交
  4. 13 7月, 2019 1 次提交
  5. 28 6月, 2019 1 次提交
  6. 27 3月, 2019 2 次提交
  7. 25 2月, 2019 1 次提交
  8. 20 2月, 2019 1 次提交
  9. 23 1月, 2019 1 次提交
  10. 22 10月, 2018 1 次提交
  11. 24 5月, 2018 6 次提交
  12. 27 4月, 2018 1 次提交
  13. 05 3月, 2018 1 次提交
  14. 13 11月, 2017 1 次提交
  15. 27 10月, 2017 2 次提交
  16. 18 10月, 2017 1 次提交
  17. 22 9月, 2017 1 次提交
  18. 30 8月, 2017 1 次提交
  19. 08 8月, 2017 3 次提交
  20. 02 8月, 2017 7 次提交
  21. 01 6月, 2017 1 次提交
  22. 18 5月, 2017 3 次提交
  23. 30 1月, 2017 1 次提交