aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Brunet <[email protected]>2020-02-14 14:13:47 +0100
committerMark Brown <[email protected]>2020-02-14 20:51:14 +0000
commit269f00171273e47eebc915cc6ee8ceececa37a3a (patch)
tree8213456cccd7db9f7efdccb98425d7471e81d107
parent51c366e38aaa6b298ba1e6ceef0f2c3de1180b29 (diff)
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 <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/meson/aiu.c2
1 files changed, 1 insertions, 1 deletions
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;