diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-06-16 05:32:33 -0400 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2014-06-19 07:52:31 -0400 |
commit | 6c7ee8905d54e66d01902c59490bbc99d87d4efb (patch) | |
tree | 7bc3e6373872badc4e48dc506e377ce09b95e2e7 /drivers/clk/ti | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
clk: ti: apll: not allocating enough data
There is a cut and paste bug here which will lead to memory corruption
because we don't allocate enough data.
Fixes: 4d008589e271 ('CLK: TI: APLL: add support for omap2 aplls')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'drivers/clk/ti')
-rw-r--r-- | drivers/clk/ti/apll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/ti/apll.c b/drivers/clk/ti/apll.c index 5428c9c547cd..18dbaf128a39 100644 --- a/drivers/clk/ti/apll.c +++ b/drivers/clk/ti/apll.c | |||
@@ -338,7 +338,7 @@ static void __init of_omap2_apll_setup(struct device_node *node) | |||
338 | const char *parent_name; | 338 | const char *parent_name; |
339 | u32 val; | 339 | u32 val; |
340 | 340 | ||
341 | ad = kzalloc(sizeof(*clk_hw), GFP_KERNEL); | 341 | ad = kzalloc(sizeof(*ad), GFP_KERNEL); |
342 | clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); | 342 | clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); |
343 | init = kzalloc(sizeof(*init), GFP_KERNEL); | 343 | init = kzalloc(sizeof(*init), GFP_KERNEL); |
344 | 344 | ||