Skip to content

Commit

Permalink
ASoC: meson: aiu: fix clk bulk size allocation
Browse files Browse the repository at this point in the history
Fix the size of allocated memory for the clock bulk data

Fixes: 6ae9ca9 ("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>
  • Loading branch information
Jerome Brunet authored and Mark Brown committed Feb 14, 2020
1 parent 51c366e commit 269f001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/meson/aiu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 269f001

Please sign in to comment.