]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sprd: add missing kfree
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Thu, 5 Sep 2019 10:30:09 +0000 (18:30 +0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 18 Sep 2019 05:01:02 +0000 (22:01 -0700)
commit0d1f2b5d8b8bbdb97f319bcafde72c53c503ea5e
treeeeee2f3d17b5a377b866757d923136f63b33aac1
parent8ae2f793d21f67d4ab95029bb6873efffa36907b
clk: sprd: add missing kfree

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: edb8737dcd4b ("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>
drivers/clk/sprd/pll.c