Re: [PATCH] clk: ti: dm814x: Add of_node_put() to prevent memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Nishka Dasgupta (2019-08-04 09:33:28)
> 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 <nishkadg.linux@xxxxxxxxx>
> ---

Applied to clk-next





[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux