diff options
| author | Wen Yang <[email protected]> | 2019-03-05 11:32:56 +0000 |
|---|---|---|
| committer | Heiko Stuebner <[email protected]> | 2019-04-23 17:52:37 +0000 |
| commit | fbd7af041586a15f5dc15b9ec051d25aa5ebe00a (patch) | |
| tree | b31b0482f4e999e9926c44263624e8fd7d803a36 /lib/test_stackinit.c | |
| parent | ARM: rockchip: Mark pm-init functions __init (diff) | |
| download | kernel-fbd7af041586a15f5dc15b9ec051d25aa5ebe00a.tar.gz kernel-fbd7af041586a15f5dc15b9ec051d25aa5ebe00a.zip | |
ARM: rockchip: add missing of_node_put in rockchip_smp_prepare_pmu
The call to of_get_next_child returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.
Detected by coccinelle with the following warnings:
./arch/arm/mach-rockchip/platsmp.c:250:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function.
./arch/arm/mach-rockchip/platsmp.c:260:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function.
./arch/arm/mach-rockchip/platsmp.c:263:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function.
Signed-off-by: Wen Yang <[email protected]>
Cc: Russell King <[email protected]>
Cc: Heiko Stuebner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Heiko Stuebner <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
