diff options
author | Nishka Dasgupta <[email protected]> | 2019-08-04 22:01:51 +0530 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2019-08-07 15:26:32 -0700 |
commit | d432d04560301c6350158dc4a7e8275b331fd480 (patch) | |
tree | 744cdff49922927abf22dea961f9704f7e76f5da /lib/test_overflow.c | |
parent | d55841ce1115ce08614bde66a780211f4ea12ae1 (diff) |
clk: st: clk-flexgen: Add of_node_put() in st_of_flexgen_setup()
In function st_of_flexgen_setup, variable pnode takes the return value
of of_get_parent, which gets a node but does not put it. If pnode is not
put before the function returns, it may cause a memory leak. Hence put
pnode after its last occurrence.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions