diff options
author | Nishka Dasgupta <[email protected]> | 2019-08-04 22:04:44 +0530 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2019-08-07 15:25:25 -0700 |
commit | 5911dba556cf41a14907ed04b5636cf852b17933 (patch) | |
tree | 2296aafb06a5f24258e79a5c4348db9b906bdaca /lib/test_overflow.c | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) |
clk: versatile: Add of_node_put() in cm_osc_setup()
In function cm_osc_setup, variable parent takes the value returned by
of_get_parent, which gets a node but does not put it. If parent is not
put before it goes out of scope, it may cause a memory leak.
Hence put parent before the function terminates.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions