aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-08-04 22:03:28 +0530
committerStephen Boyd <[email protected]>2019-08-07 15:26:39 -0700
commitb684702f6e471d5e7dd80dfbb926489b87f60bd8 (patch)
tree54a27f7f28ed1f77ae4506a1e08542fe2c174fbb /lib/test_overflow.c
parentd432d04560301c6350158dc4a7e8275b331fd480 (diff)
clk: ti: dm814x: Add of_node_put() to prevent memory leak
In function dm814x_adpll_early_init, variable np takes the value returned by of_find_node_by_name, which gets a node but does not put it. If np is not put before return, it may cause a memory leak. Hence put np before return. 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