diff options
author | Liang He <[email protected]> | 2022-07-16 11:13:24 +0800 |
---|---|---|
committer | Krzysztof Kozlowski <[email protected]> | 2022-08-16 12:12:03 +0300 |
commit | 61b3c876c1cbdb1efd1f52a1f348580e6e14efb6 (patch) | |
tree | 99f05ae203a74fca9a682fb45b3c3921c46bde41 /net/lapb/lapb_timer.c | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) |
memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe()
The break of for_each_available_child_of_node() needs a
corresponding of_node_put() when the reference 'child' is not
used anymore. Here we do not need to call of_node_put() in
fail path as '!match' means no break.
While the of_platform_device_create() will created a new
reference by 'child' but it has considered the refcounting.
Fixes: fee10bd22678 ("memory: pl353: Add driver for arm pl353 static memory controller")
Signed-off-by: Liang He <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions