From: "Péter Ujfalusi" <peter.ujfalusi@linux.intel.com>
To: sunran001@208suo.com, perex@perex.cz, tiwai@suse.com
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
Ranjani Sridharan <ranjani.sridharan@linux.intel.com>,
Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH] ASoC: SOF: ipc4-topology: fix application of sizeof to pointer
Date: Tue, 25 Jul 2023 11:16:10 +0300 [thread overview]
Message-ID: <01518d81-0b1d-6190-631c-01cc00da2bb6@linux.intel.com> (raw)
In-Reply-To: <74739aaaa05f52084757b526bc8348c8@208suo.com>
On 20/07/2023 11:43, sunran001@208suo.com wrote:
> The coccinelle check report:
> ./drivers/scsi/csiostor/csio_mb.c:1554:46-52: ERROR: application of
> sizeof to pointer
Please include the maintainers for patches to enusre they reach the
correct audience, if in doubt who should be on TO/CC, use the
scripts/get_maintainer.pl <patch file>
Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
> Signed-off-by: Ran Sun <sunran001@208suo.com>
> ---
> sound/soc/sof/ipc4-topology.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c
> index a4e1a70b607d..2dbe87dbd239 100644
> --- a/sound/soc/sof/ipc4-topology.c
> +++ b/sound/soc/sof/ipc4-topology.c
> @@ -218,7 +218,7 @@ static int sof_ipc4_get_audio_fmt(struct
> snd_soc_component *scomp,
>
> ret = sof_update_ipc_object(scomp, available_fmt,
> SOF_AUDIO_FMT_NUM_TOKENS, swidget->tuples,
> - swidget->num_tuples, sizeof(available_fmt), 1);
> + swidget->num_tuples, sizeof(*available_fmt), 1);
The second last parameter is in essence unused since we only update a
single item.
The patch is correct in a semantic way but the original code worked
correctly.
> if (ret) {
> dev_err(scomp->dev, "Failed to parse audio format token count\n");
> return ret;
--
Péter
next prev parent reply other threads:[~2023-07-25 8:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230720073836.3285-1-xujianghui@cdjrlc.com>
2023-07-20 8:43 ` [PATCH] ASoC: SOF: ipc4-topology: fix application of sizeof to pointer sunran001
2023-07-24 9:11 ` Pierre-Louis Bossart
2023-07-25 8:16 ` Péter Ujfalusi [this message]
2023-07-25 11:11 ` Mark Brown
[not found] <20230719015525.48613-1-zhanglibing@cdjrlc.com>
2023-07-19 2:10 ` [PATCH] ASoC: SOF: ipc4-topology: Fix " wuyonggang001
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=01518d81-0b1d-6190-631c-01cc00da2bb6@linux.intel.com \
--to=peter.ujfalusi@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
--cc=sunran001@208suo.com \
--cc=tiwai@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox