diff options
| author | Krzysztof Kozlowski <[email protected]> | 2014-04-04 07:51:20 +0000 |
|---|---|---|
| committer | Bryan Wu <[email protected]> | 2014-05-08 06:28:08 +0000 |
| commit | 1175d5bc7b490a5175c955b4e656f42577a43ecf (patch) | |
| tree | fcc5dbd67343493161014d9aaa57a5afe30c357c /drivers/tty/serial/sccnxp.c | |
| parent | leds: 88pm860x: Use of_get_child_by_name (diff) | |
| download | kernel-1175d5bc7b490a5175c955b4e656f42577a43ecf.tar.gz kernel-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 <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
