]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Octeon: add missing of_node_put()
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 16 Jun 2018 07:06:33 +0000 (09:06 +0200)
committerPaul Burton <paul.burton@mips.com>
Sat, 28 Jul 2018 02:45:15 +0000 (19:45 -0700)
commit259f181c529dde84fcd9a843807b66d6075ccb19
tree99c0062b24bd2e66397d03ca5170c68e4abf7736
parent78357c85e0b60c8dbaaaa1cd9520e7ed75da0f94
MIPS: Octeon: add missing of_node_put()

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 <hofrat@osadl.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/19558/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
arch/mips/cavium-octeon/octeon-platform.c