]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mvebu/clk-cpu.c: fix memory leakage
authorCong Ding <dinggnu@gmail.com>
Tue, 15 Jan 2013 18:44:26 +0000 (19:44 +0100)
committerJason Cooper <jason@lakedaemon.net>
Wed, 23 Jan 2013 01:06:52 +0000 (01:06 +0000)
commit6f228aa74c8063d582d855580af87125d0818339
tree7706a80b981da28f3669a973484ebab8384a23f2
parent2febb0a6f737d5f0f9924a272e494349eb0e29c7
clk: mvebu/clk-cpu.c: fix memory leakage

the variable cpuclk and clk_name should be properly freed when error happens.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/clk/mvebu/clk-cpu.c