git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3526f99
)
clk: imx: Free pll on error path
author
Andrew Goodbody
<andrew.goodbody@linaro.org>
Wed, 23 Jul 2025 16:32:45 +0000
(17:32 +0100)
committer
Fabio Estevam
<festevam@gmail.com>
Thu, 7 Aug 2025 11:13:17 +0000
(08:13 -0300)
For an unknown pll type the error path neglects to free the memory just
allocated. Add the free.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/clk/imx/clk-pll14xx.c
patch
|
blob
|
history
diff --git
a/drivers/clk/imx/clk-pll14xx.c
b/drivers/clk/imx/clk-pll14xx.c
index
7ec78dc
..
f9fcec1
100644
(file)
--- a/
drivers/clk/imx/clk-pll14xx.c
+++ b/
drivers/clk/imx/clk-pll14xx.c
@@
-409,6
+409,7
@@
struct clk *imx_clk_pll14xx(const char *name, const char *parent_name,
default:
pr_err("%s: Unknown pll type for pll clk %s\n",
__func__, name);
+ kfree(pll);
return ERR_PTR(-EINVAL);
};