mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
ASoC: meson: aiu: fix clk bulk size allocation
Fix the size of allocated memory for the clock bulk data
Fixes: 6ae9ca9ce9
("ASoC: meson: aiu: add i2s and spdif support")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200214131350.337968-3-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
51c366e38a
commit
269f001712
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ static int aiu_clk_bulk_get(struct device *dev,
|
|||
struct clk_bulk_data *clks;
|
||||
int i, ret;
|
||||
|
||||
clks = devm_kcalloc(dev, num, sizeof(clks), GFP_KERNEL);
|
||||
clks = devm_kcalloc(dev, num, sizeof(*clks), GFP_KERNEL);
|
||||
if (!clks)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in a new issue