]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qoriq: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 23 Nov 2015 10:06:50 +0000 (15:36 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 30 Nov 2015 21:00:54 +0000 (13:00 -0800)
commit5d95a1515d95c004d00d0445b64a3b1d9af3a193
tree9abfbbc1e62f217ed17f0b8d9e441400c390f140
parent27450c4192b1838e830f60437363055d0c1aaa18
clk: qoriq: fix memory leak

If get_pll_div() fails we exited by returning NULL but we missed
releasing hwc.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Fixes: fe4f3491320b ("clk: qoriq: Move chip-specific knowledge into driver")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-qoriq.c