summaryrefslogtreecommitdiff
path: root/sound/soc/sof/ipc3.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-08-10 02:19:02 +0300
committerMark Brown <broonie@kernel.org>2023-08-10 02:19:02 +0300
commit81113108491edc277d61337ea410c5f89d85faa3 (patch)
tree2bce8a3c2bd7ad8bd46674cd34ddde5ba1073417 /sound/soc/sof/ipc3.c
parent59146c3cd326a622e9041614842346aada11ca99 (diff)
parente6475ce253187d2e68867102fddd57341ebbf8eb (diff)
downloadlinux-81113108491edc277d61337ea410c5f89d85faa3.tar.xz
ASoC: Merge up fixes
For the benefit of CI
Diffstat (limited to 'sound/soc/sof/ipc3.c')
-rw-r--r--sound/soc/sof/ipc3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/ipc3.c b/sound/soc/sof/ipc3.c
index 09834205b119..33df028d4854 100644
--- a/sound/soc/sof/ipc3.c
+++ b/sound/soc/sof/ipc3.c
@@ -1001,7 +1001,7 @@ void sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr,
ipc3_log_header(sdev->dev, "ipc rx", hdr->cmd);
- if (hdr->size < sizeof(hdr) || hdr->size > SOF_IPC_MSG_MAX_SIZE) {
+ if (hdr->size < sizeof(*hdr) || hdr->size > SOF_IPC_MSG_MAX_SIZE) {
dev_err(sdev->dev, "The received message size is invalid: %u\n",
hdr->size);
return;