projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9123e3a
)
clk: davinci: Use the correct size when allocating memory
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 9 Aug 2020 14:49:59 +0000
(16:49 +0200)
committer
Stephen Boyd
<sboyd@kernel.org>
Wed, 19 Aug 2020 03:08:23 +0000
(20:08 -0700)
'sizeof(*pllen)' should be used in place of 'sizeof(*pllout)' to avoid a
small over-allocation.
Fixes:
2d1726915159
("clk: davinci: New driver for davinci PLL clocks")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link:
https://lore.kernel.org/r/20200809144959.747986-1-christophe.jaillet@wanadoo.fr
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/davinci/pll.c
patch
|
blob
|
history
diff --git
a/drivers/clk/davinci/pll.c
b/drivers/clk/davinci/pll.c
index
6c35e4b
..
0d75043
100644
(file)
--- a/
drivers/clk/davinci/pll.c
+++ b/
drivers/clk/davinci/pll.c
@@
-491,7
+491,7
@@
struct clk *davinci_pll_clk_register(struct device *dev,
parent_name = postdiv_name;
}
- pllen = kzalloc(sizeof(*pll
out
), GFP_KERNEL);
+ pllen = kzalloc(sizeof(*pll
en
), GFP_KERNEL);
if (!pllen) {
ret = -ENOMEM;
goto err_unregister_postdiv;