aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-08-04 21:58:24 +0530
committerStephen Boyd <[email protected]>2019-08-07 15:25:45 -0700
commitd55841ce1115ce08614bde66a780211f4ea12ae1 (patch)
tree3fd5c8f9652512c568e60fcbf2a7c2b03011be41 /lib/test_overflow.c
parent5911dba556cf41a14907ed04b5636cf852b17933 (diff)
clk: davinci: pll: Add of_node_put() in of_davinci_pll_init()
The variable child in the function of_davinci_pll_init takes the value of of_get_child_by_name, which gets a node but does not put it. If child is not put before the function returns it may cause a memory leak. Hence put child before two return statements. 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