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)
commitd6f620a457aa4c5c2e8d1a079a1236216c445aba
tree7706a80b981da28f3669a973484ebab8384a23f2
parent11d5993df2e1f65e3acfeb92a3febe88803b3e7f
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