summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/clock
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-01-21 18:16:24 +0300
committerStephen Boyd <sboyd@kernel.org>2024-02-22 07:26:39 +0300
commit64c6a38136b74a2f18c42199830975edd9fbc379 (patch)
treea00451b44cca3da8180d3aa264a9b50dd0f5bf1d /Documentation/devicetree/bindings/clock
parent74e39f526d95c0c119ada1874871ee328c59fbee (diff)
downloadlinux-64c6a38136b74a2f18c42199830975edd9fbc379.tar.xz
clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
'p_clk' is an array allocated just before the for loop for all clk that need to be registered. It is incremented at each loop iteration. If a clk_register() call fails, 'p_clk' may point to something different from what should be freed. The best we can do, is to avoid this wrong release of memory. Fixes: 6c81966107dc ("clk: hisilicon: Add clock driver for hi3559A SoC") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/773fc8425c3b8f5b0ca7c1d89f15b65831a85ca9.1705850155.git.christophe.jaillet@wanadoo.fr Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/clock')
0 files changed, 0 insertions, 0 deletions