]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clk: at91: Use kcalloc() in of_at91_clk_pll_get_characteristics()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Apr 2017 17:43:03 +0000 (19:43 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 22 Apr 2017 02:20:34 +0000 (19:20 -0700)
commit1e5c844441e6dbf2e2433384ac835b712c35c533
tree6b134b6b81c441bd5a33b6a403ffe2d8a4c23ced
parent7c2adaf11036654e4a5f5da0bf09916901f3e1ec
clk: at91: Use kcalloc() in of_at91_clk_pll_get_characteristics()

Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "kcalloc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/at91/clk-pll.c