[PATCH] MIPS: Octeon: add missing of_node_put()

2018-06-16 Thread Nicholas Mc Guire
The call to of_find_node_by_name inside the do-while-loop is returning node with refcount incremented thus it must be explicitly decremented here after usage. Signed-off-by: Nicholas Mc Guire commit 93e502b3c2d4 ("MIPS: OCTEON: Platform support for OCTEON III USB controller") --- Problem locate

[PATCH] MIPS: Octeon: add missing of_node_put()

2018-06-16 Thread Nicholas Mc Guire
The call to of_find_node_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented here after the last usage. Signed-off-by: Nicholas Mc Guire --- Patch found by experimental coccinelle script Patch was compile tested with: cavium_octeon_defconfig (with a