summaryrefslogtreecommitdiffstats
path: root/security/keys
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-04-04 09:51:20 +0200
committerBryan Wu <cooloney@gmail.com>2014-05-08 08:28:08 +0200
commit1175d5bc7b490a5175c955b4e656f42577a43ecf (patch)
treefcc5dbd67343493161014d9aaa57a5afe30c357c /security/keys
parentleds: 88pm860x: Use of_get_child_by_name (diff)
downloadlinux-1175d5bc7b490a5175c955b4e656f42577a43ecf.tar.xz
linux-1175d5bc7b490a5175c955b4e656f42577a43ecf.zip
leds: 88pm860x: Fix missing refcount decrement for parent of_node
The driver obtained the reference to parent->of_node but immediately it was overwritten by reference to child node 'leds'. The of_node_put at the end of DT parsing function decremented only the child 'leds' so effectively the reference to parent of_node leaked. Getting reference to parent->of_node is not needed at all so get rid of it to fix the reference count. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'security/keys')
0 files changed, 0 insertions, 0 deletions