Skip to content

Commit

Permalink
clk: ti: apll: not allocating enough data
Browse files Browse the repository at this point in the history
There is a cut and paste bug here which will lead to memory corruption
because we don't allocate enough data.

Fixes: 4d00858 ('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>
  • Loading branch information
Dan Carpenter authored and Tero Kristo committed Jun 19, 2014
1 parent 7171511 commit 6c7ee89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/ti/apll.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static void __init of_omap2_apll_setup(struct device_node *node)
const char *parent_name;
u32 val;

ad = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
ad = kzalloc(sizeof(*ad), GFP_KERNEL);
clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
init = kzalloc(sizeof(*init), GFP_KERNEL);

Expand Down

0 comments on commit 6c7ee89

Please sign in to comment.