[PATCH] firmware: arm_scmi: imx: Correct tx size of scmi_imx_misc_ctrl_set
Sudeep Holla
sudeep.holla at arm.com
Mon Feb 17 07:51:21 PST 2025
On Thu, 23 Jan 2025 14:34:41 +0800, Peng Fan (OSS) wrote:
> 'struct scmi_imx_misc_ctrl_set_in' has a zero length array in the end,
> so sizeof will not count 'value[]', and txsize is smaller than actual
> size for tx,and SCMI firmware will take this protocol error.
>
> Fix this by enlarge the txsize with 'num * 4' to count in the size of
> data.
>
> [...]
Applied with some minor changes to sudeep.holla/linux (for-next/scmi/fixes), thanks!
[1/1] firmware: arm_scmi: imx: Correct tx size of scmi_imx_misc_ctrl_set
https://git.kernel.org/sudeep.holla/c/ab027c488fc4
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list