All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerome Brunet <jbrunet@baylibre.com>
To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>,
	alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org,
	Kevin Hilman <khilman@baylibre.com>,
	kbuild test robot <lkp@intel.com>
Subject: [PATCH 2/5] ASoC: meson: aiu: fix clk bulk size allocation
Date: Fri, 14 Feb 2020 14:13:47 +0100	[thread overview]
Message-ID: <20200214131350.337968-3-jbrunet@baylibre.com> (raw)
In-Reply-To: <20200214131350.337968-1-jbrunet@baylibre.com>

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 <lkp@intel.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 sound/soc/meson/aiu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.24.1


WARNING: multiple messages have this Message-ID (diff)
From: Jerome Brunet <jbrunet@baylibre.com>
To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
	kbuild test robot <lkp@intel.com>,
	Kevin Hilman <khilman@baylibre.com>,
	linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org,
	Jerome Brunet <jbrunet@baylibre.com>
Subject: [alsa-devel] [PATCH 2/5] ASoC: meson: aiu: fix clk bulk size allocation
Date: Fri, 14 Feb 2020 14:13:47 +0100	[thread overview]
Message-ID: <20200214131350.337968-3-jbrunet@baylibre.com> (raw)
In-Reply-To: <20200214131350.337968-1-jbrunet@baylibre.com>

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 <lkp@intel.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 sound/soc/meson/aiu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.24.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

WARNING: multiple messages have this Message-ID (diff)
From: Jerome Brunet <jbrunet@baylibre.com>
To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
	kbuild test robot <lkp@intel.com>,
	Kevin Hilman <khilman@baylibre.com>,
	linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org,
	Jerome Brunet <jbrunet@baylibre.com>
Subject: [PATCH 2/5] ASoC: meson: aiu: fix clk bulk size allocation
Date: Fri, 14 Feb 2020 14:13:47 +0100	[thread overview]
Message-ID: <20200214131350.337968-3-jbrunet@baylibre.com> (raw)
In-Reply-To: <20200214131350.337968-1-jbrunet@baylibre.com>

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 <lkp@intel.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 sound/soc/meson/aiu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.24.1


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

  parent reply	other threads:[~2020-02-14 13:14 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14 13:13 [PATCH 0/5] ASoC: meson: aiu: fixups Jerome Brunet
2020-02-14 13:13 ` Jerome Brunet
2020-02-14 13:13 ` [alsa-devel] " Jerome Brunet
2020-02-14 13:13 ` [PATCH 1/5] ASoC: meson: aiu: remove unused encoder structure Jerome Brunet
2020-02-14 13:13   ` Jerome Brunet
2020-02-14 13:13   ` [alsa-devel] " Jerome Brunet
2020-02-14 20:56   ` Applied "ASoC: meson: aiu: remove unused encoder structure" to the asoc tree Mark Brown
2020-02-14 20:56     ` Mark Brown
2020-02-14 20:56     ` [alsa-devel] " Mark Brown
2020-02-14 13:13 ` Jerome Brunet [this message]
2020-02-14 13:13   ` [PATCH 2/5] ASoC: meson: aiu: fix clk bulk size allocation Jerome Brunet
2020-02-14 13:13   ` [alsa-devel] " Jerome Brunet
2020-02-14 20:56   ` Applied "ASoC: meson: aiu: fix clk bulk size allocation" to the asoc tree Mark Brown
2020-02-14 20:56     ` Mark Brown
2020-02-14 20:56     ` [alsa-devel] " Mark Brown
2020-02-14 13:13 ` [PATCH 3/5] ASoC: meson: aiu: fix irq registration Jerome Brunet
2020-02-14 13:13   ` Jerome Brunet
2020-02-14 13:13   ` [alsa-devel] " Jerome Brunet
2020-02-14 20:56   ` Applied "ASoC: meson: aiu: fix irq registration" to the asoc tree Mark Brown
2020-02-14 20:56     ` Mark Brown
2020-02-14 20:56     ` [alsa-devel] " Mark Brown
2020-02-14 13:13 ` [PATCH 4/5] ASoC: meson: aiu: fix acodec dai input name init Jerome Brunet
2020-02-14 13:13   ` Jerome Brunet
2020-02-14 13:13   ` [alsa-devel] " Jerome Brunet
2020-02-14 20:56   ` Applied "ASoC: meson: aiu: fix acodec dai input name init" to the asoc tree Mark Brown
2020-02-14 20:56     ` Mark Brown
2020-02-14 20:56     ` [alsa-devel] " Mark Brown
2020-02-14 13:13 ` [PATCH 5/5] ASoC: meson: codec-glue: fix pcm format cast warning Jerome Brunet
2020-02-14 13:13   ` Jerome Brunet
2020-02-14 13:13   ` [alsa-devel] " Jerome Brunet
2020-02-14 20:56   ` Applied "ASoC: meson: codec-glue: fix pcm format cast warning" to the asoc tree Mark Brown
2020-02-14 20:56     ` Mark Brown
2020-02-14 20:56     ` [alsa-devel] " Mark Brown
2020-04-16 16:08 ` [PATCH 0/5] ASoC: meson: aiu: fixups patchwork-bot+linux-amlogic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200214131350.337968-3-jbrunet@baylibre.com \
    --to=jbrunet@baylibre.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=khilman@baylibre.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.