1. 27 Sep, 2019 1 commit
  2. 06 Aug, 2019 1 commit
    • Nishka Dasgupta's avatar
      net: dsa: qca8k: Add of_node_put() in qca8k_setup_mdio_bus() · f26e0cca
      Nishka Dasgupta authored
      
      
      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: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f26e0cca
  3. 30 Jul, 2019 1 commit
  4. 12 Jul, 2019 1 commit
  5. 27 Jun, 2019 1 commit
  6. 26 Mar, 2019 2 commits
  7. 25 Feb, 2019 1 commit
  8. 19 Feb, 2019 1 commit
  9. 23 Jan, 2019 1 commit
  10. 22 Oct, 2018 1 commit
  11. 23 May, 2018 6 commits
  12. 27 Apr, 2018 1 commit
  13. 04 Mar, 2018 1 commit
  14. 13 Nov, 2017 1 commit
  15. 27 Oct, 2017 2 commits
  16. 18 Oct, 2017 1 commit
  17. 21 Sep, 2017 1 commit
  18. 29 Aug, 2017 1 commit
  19. 07 Aug, 2017 3 commits
  20. 02 Aug, 2017 7 commits
  21. 31 May, 2017 1 commit
  22. 18 May, 2017 2 commits
  23. 17 May, 2017 1 commit
  24. 29 Jan, 2017 1 commit