summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx
diff options
context:
space:
mode:
authorJames Liao <jamesjj.liao@mediatek.com>2016-01-08 09:15:33 +0100
committerStephen Boyd <sboyd@codeaurora.org>2016-01-29 22:02:51 +0100
commit4974259e18f1fd519d4329babbfefa24852375bb (patch)
treeb722d67e701dda10844e2d5a482f2b6e17cf510a /arch/arm/mach-ixp4xx
parentclk: move the common clock's to_clk_*(_hw) macros to clk-provider.h (diff)
downloadlinux-4974259e18f1fd519d4329babbfefa24852375bb.tar.xz
linux-4974259e18f1fd519d4329babbfefa24852375bb.zip
clk: mediatek: Fix memory leak on clock init fail
mtk_clk_register_composite() may leak memory due to some error handling path don't free all allocated memory. This patch free all pointers that may allocate memory before error return. And it's safe because kfree() can handle NULL pointers. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
0 files changed, 0 insertions, 0 deletions