clk: sprd: add missing kfree
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Thu, 5 Sep 2019 10:30:09 +0000 (18:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:59:22 +0000 (18:59 +0200)
commitcbd9a87fbdf93c6d4a8a307b93239be724a6d992
treef05d33e4677c78cd7c767a04ff2becb5c8127b94
parent4d5a7f001acc75f1c236e96f2336bf4500cb9374
clk: sprd: add missing kfree

[ Upstream commit 5e75ea9c67433a065b0e8595ad3c91c7c0ca0d2d ]

The number of config registers for different pll clocks probably are not
same, so we have to use malloc, and should free the memory before return.

Fixes: 3e37b005580b ("clk: sprd: add adjustable pll support")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com>
Link: https://lkml.kernel.org/r/20190905103009.27166-1-zhang.lyra@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/sprd/pll.c