From: Jerome Brunet Date: Fri, 14 Feb 2020 13:13:47 +0000 (+0100) Subject: ASoC: meson: aiu: fix clk bulk size allocation X-Git-Tag: microblaze-v5.10~23^2~170^2~179 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=269f00171273e47eebc915cc6ee8ceececa37a3a;p=linux-2.6-microblaze.git ASoC: meson: aiu: fix clk bulk size allocation Fix the size of allocated memory for the clock bulk data Fixes: 6ae9ca9ce986 ("ASoC: meson: aiu: add i2s and spdif support") Reported-by: kbuild test robot Signed-off-by: Jerome Brunet Link: https://lore.kernel.org/r/20200214131350.337968-3-jbrunet@baylibre.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/meson/aiu.c b/sound/soc/meson/aiu.c index 5c4845a23a34..de678a9d5cab 100644 --- a/sound/soc/meson/aiu.c +++ b/sound/soc/meson/aiu.c @@ -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;