ASoC: SOF: Fix incorrect use of sizeof in sof_ipc3_do_rx_work()
authorXia Fukun <xiafukun@huawei.com>
Mon, 7 Aug 2023 07:51:18 +0000 (15:51 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Aug 2023 18:44:54 +0000 (19:44 +0100)
commit41aad0905568508070842e22ebc5398f8b733939
tree49d5e405f2259045de820c33ec19ce268a8ff83e
parent1f566435141047ca7db26aa4b0b6647a25badaee
ASoC: SOF: Fix incorrect use of sizeof in sof_ipc3_do_rx_work()

Here hdr is a pointer, and we should measure the size of
struct sof_ipc_cmd_hdr.

Fixes: 12c41c779fad ("ASoC: SOF: Refactor rx function for fuzzing")
Signed-off-by: Xia Fukun <xiafukun@huawei.com>
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20230807075118.128122-1-xiafukun@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3.c