mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08: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
@ -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 New Issue
Block a user